3

The nuget package Project Xyz contains all xml files along with dll and pdb files. We are using this package Xyz in a different project Abc of a different solution.

We have a team city build setup for publishing the package Xyz to Proget feed(we use proget for private nuget packages repository).

We also have a Team City build setup to compile and deploy the Abc project. But, while compiling the build, when we restore the nuget package, it downloads only dll/pdb files but not xml files. In the build step of team city, we have runner type as dotnet and command as restore.

How do we make it restore xml files as well?

This is a follow up question to the above link? We followed below link to publish nuget package with xml files. https://stackoverflow.com/a/63353505/5887074

Please note: Even though project level environment variables in team city has NUGET_XMLDOC_MODE=none, dot net restore is overriding environment variable for some reason with [Environment] NUGET_XMLDOC_MODE = skip

Vicky
  • 624
  • 2
  • 12
  • 35
  • @Perry Qian-MSFT - any idea about this? – Vicky Sep 04 '20 at 19:52
  • Maybe you could try to push your new nuget package into teamcity nuget server. See [this](https://www.jetbrains.com/help/teamcity/nuget-publish.html). – Mr Qian Sep 07 '20 at 09:15
  • We did publish the package to proget feed where we are able to see all xml along with pdb/dll files. But while restoring, it only restores pdb and dll files and ignores xml files. Added more description in the question as well. – Vicky Sep 07 '20 at 19:32
  • Have you tried adding the ```--verbosity detailed``` argument to the restore step? May give some insight into why the xml is being excluded. – Jeff Gruenbaum Sep 09 '20 at 01:24
  • 1
    Yes we tried that and found this. Even though project level environment variables in team city has NUGET_XMLDOC_MODE=none, dot net restore is overriding environment variable for some reason with [Environment] NUGET_XMLDOC_MODE = skip – Vicky Sep 09 '20 at 14:35
  • Hey Vicky, while packaging it included all XML's and PDB and dll's. Can you tell me how it's restoring dll and pdb for you, I have only dll restored. – user9473385 May 10 '21 at 19:47

0 Answers0