SDK doesn't honor TargetingPackVersion on FrameworkReference
See original GitHub issueSDK permits specifying TargetingPackVersion metdata on FrameworkReference: https://github.com/dotnet/sdk/blob/7d6b26df6cc873e07816a098bb66a6bde2640b06/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs#L99-L103
But then it constructs the path to the targeting pack based on KnownFrameworkReference: https://github.com/dotnet/sdk/blob/7d6b26df6cc873e07816a098bb66a6bde2640b06/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs#L112-L122
Also, is this really the way we should be specifying which framework to build against? I had expected RuntimeFrameworkVersion
to work, but it looks like that only controls the runtime and not ref-pack.
/cc @dsplaisted
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
The FrameworkReference was not recognized - .NET CLI
This error typically means there is a version of a particular FrameworkReference that the SDK cannot find. Try deleting your obj and bin ......
Read more >FrameworkReference 'Microsoft.NETCore.App' was not ...
Hi guys. I am using Debian 10.1, and today I upgraded net core, version 3.0 to 3.0.1 and my application crashed. Error: "FrameworkReference...
Read more >c# - What <FrameworkReference Include="Microsoft. ...
Sdk.Web project SDK which already includes the framework reference by default. You will only need to add the framework reference yourself if you ......
Read more >The Current .NET SDK does not support targeting . ...
How to work around a common .NET Core compilation targeting error using .NET Core 3 SDK and .NET Core 3 projects with Visual...
Read more >Upgrading from .NET Core 2.1 to .NET 6.0
I upgraded an old project from .NET Core 2.1 to .NET 6. Here's what broke.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. Did you consider a property for this, or is that not so interesting in light of multiple frameworks? /cc @natemcmaster @zsd4yr @vatsan-madhavan
This should be fixed. RuntimeFrameworkVersion doesn’t affect the targeting pack version, as once we release the runtime and the targeting packs will be patched independently.