You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a NuGet behavior. Older versions of NuGet didn't treat dependencies as transitive in this way, so NuGet (currently) requires you to explicitly opt into the new behavior from your ClassLibrary2 with
Steps to reproduce
<PackageReference>
)Execute the following command line
=> Build failed
In ClassLibrary2 add a NuGet reference to a NuGet package that doesn't depend on Newtonsoft.Json, such as NUnit (
<PackageReference>
)Execute the following command line
=> Build succeed
Expected behavior
I think the first build should succeed, or the second one should fail.
Actual behavior
It fails.
Environment data
msbuild /version
output:15.6.85.37198
OS info:
Windows 10 1607
If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):
Visual Studio 15.6.7 and command line (msbuild)
The text was updated successfully, but these errors were encountered: