question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SDK doesn't honor TargetingPackVersion on FrameworkReference

See original GitHub issue

SDK 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ericstjcommented, Apr 15, 2019

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

0reactions
dsplaistedcommented, May 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found