-
Notifications
You must be signed in to change notification settings - Fork 255
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
Restore should support SetTargetFramework on ProjectReference #12436
Comments
Hey @JanKrivanek There are quite a few issues linked and I want to make sure I'm understanding the report. The referencing projects wants to I'm guessing the reference project is .NET Framework based?
|
Thank you @nkolev92 yes - that's correct. While most compatible framework is different from the choice expressed via On the other hand it sounds like it would express itself only in scenarios where user is enforcing TFM choice, that is not optimal and hence it should have easy workaround (by adjusting their |
Hey @JanKrivanek I'd say that the behavior today is what we'd expect it to be as maintainers, so this would have to be a new feature. |
@nkolev92 - This is fair from my point of view (especially as there seems to be workaround). |
NuGet Product Used
dotnet.exe
Product Version
7.0.200-preview.22628.1
Worked before?
N/A
Impact
It's more difficult to complete my work
Repro Steps & Context
When running
restore
for a project referencing a multitargeted project with conditioned package dependencies:And restricting the framework via
SetTargetFramework="TargetFramework=netstandard2.0"
in referencing project, the resultingproject.assets.json
looks like if conditions were evaluated inversely (it contains onlySystem.Text.Json
). In fact therestore
leads to same result regardles of theSetTargetFramework
presence and it's value.The full sample is located here sanmuru/MSBuild-bug - taken from dotnet/msbuild#8405
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: