-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Bug]: False NU1701 warning #11771
Comments
@bouchraRekhadda - I am wondering if this behavior is by design. I am able to reproduce this issue even on VS 2019 (Version 16.11.13). Did I miss anything in the repro steps? |
The package
<dependencies>
<group targetFramework=".NETFramework4.7.2">
...
</group>
<group targetFramework=".NETCoreApp2.1">
...
</group>
</dependencies>
<dependencies>
<group targetFramework=".NETFramework4.7.2">
...
</group>
<group targetFramework="net5.0">
...
</group>
</dependencies> ) |
NU1701 is being raised based on the assets being carried. 16.11 has lib/net472 and lib/net5.0, none of which are compatible with netcoreapp3.1 without a fallback. 16.9 has lib/netcoreapp2.1 and lib/net472, out of which netcoreapp2.1 is fully compatible with netcoreapp3.1. There's no NuGet bug here. |
NuGet Product Used
MSBuild.exe
Product Version
17.1.0.7609
Worked before?
Yes with MSBuild 16.11.2.50704
Impact
I'm unable to use this version
Repro Steps & Context
Sample reproduction project:
Building using
MSBuild.exe
:"C:\Program Files\Microsoft Visual Studio\2022\Professional\Msbuild\Current\Bin\MSBuild.exe" ConsoleApp2.csproj /t:restore /v:m
generate NU1701 warningThe used package reference is both compatible with .NET 6.0 and .NET Framework (from it's nuspec file)
The issue seems related to #11564 since the
Microsoft.Build
nuspec doesn't explicitly list .NET Core 3.1 as a supported Framework (not sure though).Verbose Logs
The text was updated successfully, but these errors were encountered: