C
C#2y ago
Natro

❔ 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
Natro
NatroOP2y ago
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:
<PackageReference Include="Reference.SET.Testware.TestActions.Ratatosk" Version="1.33.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive; **/*.xml</IncludeAssets>
</PackageReference>
<PackageReference Include="Reference.SET.Testware.TestActions.Ratatosk" Version="1.33.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive; **/*.xml</IncludeAssets>
</PackageReference>
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Trinitek
Trinitek2y ago
NuGet PackageReference in project files
Details on NuGet PackageReference in project files as supported by NuGet 4.0+ and VS2017 and .NET Core 2.0
Trinitek
Trinitek2y ago
since I'm understanding that the nuget package ships with the XML file, and it isn't being generated, is that right?
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server