Build for .NET 5, 6, 7, 8, 9 & 10 and ReferenceAssemblies.Default to locate each respective runtime#1196
Conversation
|
Got a few errors switching to the .NET 9 SDK which I think I've managed to fix, but I've got a new error now that I have no idea what it means or how to fix it:
|
|
This PR can be updated to .NET 10 as well. |
cd37736 to
a6a9eec
Compare
7cb43a5 to
26a8353
Compare
…amework - Add net5.0 through net10.0 to TestingLibraryTargetFrameworks and TestingLibrarySourceGeneratorTargetFrameworks - Update ReferenceAssemblies.Default to return the correct reference assemblies for each target framework via conditional compilation - Update global.json to .NET 10 SDK (10.0.100) to support building net10.0 targets - Add System.Resources.Extensions to fix VSSDK1012 build error with newer SDK versions - Add CheckNotRecommendedTargetFramework=false to allow building .NET Standard 1.6 with the .NET 10 SDK
26a8353 to
a52ceac
Compare
|
@AraHaan added |
| <!-- Required for the .NET 10 SDK to build out-of-support target frameworks --> | ||
| <CheckNotRecommendedTargetFramework>false</CheckNotRecommendedTargetFramework> | ||
|
|
||
| <TestingLibraryTargetFrameworks>net10.0;net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netstandard1.6;netstandard2.0;net452;net46;net461;net472</TestingLibraryTargetFrameworks> |
There was a problem hiding this comment.
I'm not a maintainer of this project, but IMO it's not worth it to pack for all these TFMs.
I would probably just add net10.0 to the existing TFMs. So it's .NET 10, .NET Core 3.1, .NET Standard 2.0, and .NET Framework 4.7.2.
Summary
net5.0throughnet10.0toTestingLibraryTargetFrameworksandTestingLibrarySourceGeneratorTargetFrameworks, enabling the testing libraries to be built for each modern .NET runtimeReferenceAssemblies.Defaultto return the correct reference assemblies for the target framework being compiled against (e.g.Net.Net100on .NET 10,Net.Net90on .NET 9, etc.) via conditional compilationglobal.jsonto .NET 10 SDK to support buildingnet10.0targetsSystem.Resources.Extensionspackage reference to fix VSSDK1012 build error with newer SDK versionsCheckNotRecommendedTargetFramework=falseto allow building .NET Standard 1.6 with the .NET 10 SDK