-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Change projects to target netcoreapp3.0 #3754
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
I want to emphasize the "most" part of the original post. Some libraries, like the SignalR .NET client, must continue to target .NET Standard when the library is intended for use on other .NET runtimes like Xamarin and UWP. This decision is being made on a case-by-base basis. We should finish going through our list of assemblies and post the decisions to clarify exactly which assemblies should change to netcoreapp3.0-only. |
What about WPF applications that host asp net core? It will no longer be possible to do this. |
Just port it over to .NET Core? 😉 https://blogs.msdn.microsoft.com/dotnet/2018/10/04/update-on-net-core-3-0-and-net-framework-4-8/ |
@khellang is correct, WPF and AspNetCore can be used together. A WPF app will be able to set TargetFramework to netcoreapp3.0 and also have a FrameworkReference to Microsoft.AspNetCore.App. |
And if you don't want to port your WPF to .NET Core (though you should 😉) you can keep using ASP.NET Core 2.1 #3753 (comment)
|
@dougbu here are some known exceptions to what changes to netcoreapp3.0: https://github.com/aspnet/AspNetCore/blob/9e73c3382f4d9e6ba47afff6a1467ace945c77e7/build/SharedFrameworkOnly.props#L12-L20 |
/cc @Tratcher |
@SteveSandersonMS your email responded to a message about JsonPatch. Is that used in projects that target WebAssembly too? |
Btw, I'm updating Doug's check list above. Yes, ZipManifestGenerator could be updated, but it doesn't really matter. It's a developer tool for this repo only. We don't re-distribute. |
I double-checked the src/Identity test projects and they're fine, controlled by src\Identity\test\Directory.Build.props |
JsonPatch should change to netcoreapp3.0. Components stuff can be left alone. We'll be doing more surgery there soon, and much of it will be ns2.0 forever |
Precompilation can be deleted. |
@natemcmaster wasn't SignalR client going to need Microsoft.AspNetCore.Connections.Abstractions.csproj transitively? |
Actions so far:
|
@Tratcher yes, Microsoft.AspNetCore.Connections.Abstractions is intentionally netstandard2.0. I updated the checklist. |
@pranavkm that leaves just Microsoft.AspNetCore.Mvc.Analyzers.csproj and Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj. Must the analyzers target |
FYI I'll take the remaining few actions |
- out-of-date and no longer shipped - related to #3754
- #3754 - remove `#if`'s for multi-targeting where source is never multi-targeted
- out-of-date and no longer shipped - related to #3754
- #3754 - remove `#if`'s for multi-targeting where source is never multi-targeted - left `StreamPipeReader`, `StreamPipeWriter` and their test classes alone because they're moving to CoreFx
Last bit done in e717a84 |
Actually, @pranavkm should the analysers be converted to target |
I believe analyzers should target netstandard2.0, since csc runs on both framework (in VS) and core (everywhere else). |
As a part of only supporting .NET Core, we can change most projects to target netcoreapp3.0 instead of netstandard2.0.
This change applies to test projects, which no longer need to cross-target .NET Framework.
See aspnet/Announcements#324
Remaining feature areas (I likely missed a few here, keep adding them ~Chris):
The text was updated successfully, but these errors were encountered: