❔ Include .xml file in Nuget
Hey,
I have two .NET Framework projects. One references (A) the other (B) as nuget package reference.
When building A project I get B.dll in my bin/Debug folder buy noy B.xml file.
Is there have .xml included as well?
5 Replies
Additionally I also noticed:
nuget install ProjB
=> generated .xml file
having ProjB nuget as package reference in project A => build project A => no .xml file?
When navigating to nuget packages
%userprofile%.nuget\packages\projectB\1.0.0\lib\net35
it contains projectB.xml file.
So I assume that I need to adjust build configuration.
Currently my .csproj has following:
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
you may need to change the value of
PrivateAssets
instead, see https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assetsNuGet PackageReference in project files
Details on NuGet PackageReference in project files as supported by NuGet 4.0+ and VS2017 and .NET Core 2.0
since I'm understanding that the nuget package ships with the XML file, and it isn't being generated, is that right?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.