Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Invalid warning "Assembly outside lib folder." in dotnet pack #5655
Detailed repro steps so we can see the same problem
See https://github.com/mellinoe/ImGui.NET for a real-world project this affects.
The following bogus warning is generated:
NuGet should not be warning about this, because it is not invalid. The assembly in question is a native assembly (a PInvoke target for the main managed assembly being packaged), and should not be referenced directly from consumers of the nuget package.
@terrajobst mentioned to me that setting
Is there any other way that this warning can be silenced?
This was referenced
Aug 2, 2017
Please do that. It makes sense for 80% of packages but as we're also using NuGet more and more for tooling (i.e. templates and global tools) those warnings will become a nuisance. Given them individual IDs allows suppressing them individually and also give folks a unique way to search for them.
@rohit21agrawal: I assume you fixed this specific issue; should I file a general feature requests for outputting IDs?