-
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
GetReferenceNearestTargetFrameworkTask should support suppression of NU1702 #8093
Comments
This is the AssetTargetFallback warning on ProjectReferences. It can be suppressed on PackageReference, but not on ProjectReference. The new SDK has started emiting this warning and those who treat warning as error are encountering a build failure. |
Is there any workaround for this? |
I believe you can pass |
Thanks, that worked. Following that, was also able to use |
OK, so where about did you add this ? |
Details about Problem
https://github.com/NuGet/NuGet.Client/blob/8abf12ddde3be7bc52727f9551735fdeee7ade43/src/NuGet.Core/NuGet.Build.Tasks/GetReferenceNearestTargetFrameworkTask.cs does not read NoWarn from the project referenced (or anywhere else), so any project trying to suppress NU1702 can't do so.
NuGet product used: dotnet.exe
dotnet.exe --version (if appropriate): 3.0.100-preview4
OS version (i.e. win10 v1607 (14393.321)): Windows 10
CC @ericstj
The text was updated successfully, but these errors were encountered: