Skip to content

Conversation

prafullbhosale
Copy link
Contributor

Changes include:

  • Add binaries for the following RIDs to the Microsoft.VisualStudio.Web.CodeGeneration.Design package

    • win7-x86
    • win7-x64
    • win-arm
    • win-arm64
  • Also add a AnyCPU PlatformTarget binary in lib\net461 path to handle the case when the user project specifies <PlatformTarget>AnyCpu</PlatformTarget> without a RID

  • Change how we locate the inside-man to dispatch for net461 case to handle the fact that the compilation assemblies will no longer have the inside man for net461 case

Impact of packing 6 binaries instead of 2:

On local machine the 2.0.0 package size is 55KB, the new package size is 127 KB

cc @Eilon, @mlorbetske

Fixes #601

EnsureBindingRedirects(assemblyFullPath, Path.GetFileName(dependencyToolPath));
// For Full framework, we can directly invoke the <dependencyTool>.exe from the user's bin folder.
dependencyToolPath = Path.Combine(Path.GetDirectoryName(assemblyFullPath), Path.GetFileName(dependencyToolPath));
// dependencyToolPath = Path.Combine(Path.GetDirectoryName(assemblyFullPath), Path.GetFileName(dependencyToolPath));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete?


private static bool IsNetCoreAppFramework(NuGetFramework framework)
{
//Only need to compare the framework name to be netcoreapp. Version doesn't matter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Only (spacing)

else
{
throw new InvalidOperationException(Resources.AddDesignPackage);
dotnetCodeGenInsideManPath = Path.Combine(Path.GetDirectoryName(context.AssemblyFullPath), DESIGN_TOOL_NAME+".exe");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DESIGN_TOOL_NAME + ".exe" (spacing)

<Project>
<PropertyGroup>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionPrefix>2.0.1</VersionPrefix>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for the patch release?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If @Eilon approves 😃

<PackageTags>aspnetcore;codegenerator;scaffolding;visualstudioweb</PackageTags>
<PackageId>Microsoft.VisualStudio.Web.CodeGeneration.Design</PackageId>
<RuntimeIdentifier Condition=" '$(TargetFramework)' != 'netcoreapp2.0' ">win7-x86</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)' != 'netcoreapp2.0' ">win7-x64</RuntimeIdentifier>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. As discussed, you could simplify by this by either using this project do generate rid specific exes or have a common property file so you don't repeat the same details multiple times over.

@jxbolt
Copy link

jxbolt commented Aug 31, 2017

Any update on this being released?

@Eilon
Copy link
Contributor

Eilon commented Aug 31, 2017

@jamesabolton we don't have a precise ETA for the release, but we're setting up a temporary package feed where you'll be able to try out the pre-release builds of the patch. I'll update all the patch-related issues w/ info on the feed when it's available. We're working on getting the 1.0.x and 1.1.x patches ready first, and then the 2.0.x patch.

@jxbolt
Copy link

jxbolt commented Aug 31, 2017

Thank you, @Eilon. As noted in that other bug on dotnet/cli the new projects for Core 2.0 fail with an exception due to this issue. I haven't tested all of them but the MVC and Angular ones do not work. If you remove reference to the DLL then the web UI doesn't function.

@jxbolt
Copy link

jxbolt commented Sep 9, 2017

Is there anything we can do locally to get around this issue to work with the new templates and net standard 2.0 until a patch is released? I tried to downgrade the project that was created to 1.1/1.2 and that breaks various parts of the code in the template project.

@mitkodev
Copy link

any new info about this issue?
can't really do anything to workaround it and use scaffolding in aspnet core 2.0 in Service Fabric project :(

@prafullbhosale
Copy link
Contributor Author

Is there anything we can do locally to get around this issue to work with the new templates and net standard 2.0 until a patch is released? I tried to downgrade the project that was created to 1.1/1.2 and that breaks various parts of the code in the template project.

The only possible workaround at the moment is to set the RuntimeIdentifier to win7-x86 to use scaffolding. Then change it back to the x64 variant.

@mshindal
Copy link

What about the other Windows RIDs, like win10-x64?

@Eilon
Copy link
Contributor

Eilon commented Feb 16, 2018

@mshindal in general the win7-XYZ RIDs will run on newer OSes, including the win10-XYZ RIDs. Do you have a specific concern?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants