-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Build our own packages using FrameworkReference #4257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Prototype in progress: https://github.com/aspnet/AspNetCore/compare/natemcmaster:local-fx Current challenges:
|
@Pilchie I think this is still worth addressing, but this is a challenging issue to address. The challenges I described in the previous comment are still unresolved. We would probably need help from the teams which own VS, the runtime host, and the SDK to completely resolve this. It's extremely unlikely this will land in 3.0. 3.1 or 5.0 is a more appropriate timeframe for this. What we have now in the code currently is a workaround for this. There is a post-build step which manually alters the metadata in .nuspec file in NuGet packages to remove incorrect The other major workaround we have is that test projects don't actually run against the shared framework bits that ship to customers. The host doesn't provide a way to easily swap in a new shared framework, so test projects run on ASP.NET Core binaries as if they are simple class libraries projects. This means test code isn't actually executing the same crossgened binaries that ship to customers. |
@dotnet/aspnet-build Let's chat about this once everyone is back in the office and see if there is any work we need to do here. I suspect some of the details mentioned here is out of date. |
Seems minor and won't affect anyone using our packages. The cleanup task run after every build runs reliably and does the needful. About the only external improvement coming from building against framework references would be cleanup of the very few .deps.json files we ship. But, this comes with the major downside of basically requiring two builds to get the tests using the just-built ASP.NET Core assemblies. |
I think I agree that it's probably ok to let this go.
@dougbu could you give me an example of the before and after here? |
Depends on NuGet/Home#7342.
Follow up to #4178
The packages we ship which reference the shared framework should be built using
FrameworkReference
. Once NuGet/Home#7342 is resolved, the metadata for this item will be preserved in the nuspec, which should ensure consumers get all the necessary runtime settings and compiler references.Workaround
Consumers using our AspNetCore packages, such as Microsoft.AspNetCore.NodeServices, need to make sure they also have
<FrameworkReference Include="Microsoft.AspNetCore.App" />
. This will be implicitly added with Microsoft.NET.Sdk.Web, but not other MSBuild SDKs.Changes required
FrameworkReference
. (Related work Convert projects in this repo to use ProjectReference #4246)FrameworkReference
The text was updated successfully, but these errors were encountered: