0

I generate a Nuget package with NUKE, now I need to set the repository url in the nuspec. But I can't figure out how. Is it possible? Or are there any other libraries that can do this?

Sebastian
  • 952
  • 1
  • 14
  • 41
  • _"NUKE is a VFX node-based compositing package created by The Foundry, used for feature films, television, VR, and commercials."_ ..??? – stuartd Nov 18 '19 at 16:04
  • wrong tag sorry – Sebastian Nov 18 '19 at 16:06
  • Apparently not: https://nuke.build/api/Nuke.Common/Nuke.Common.Tools.NuGet.NuGetTasks.html, https://nuke.build/api/Nuke.Common/Nuke.Common.Tools.NuGet.NuGetPackSettings.html – CodeCaster Nov 18 '19 at 16:07

1 Answers1

1

Took a look at NuGet.Packaging and it appears to only have a nuspec reader I was unable to find a writer.

Since NuSpec is just and XML File you can use XmlDocument to load and change the value. An Example of that was answered in this question: Change xml element values in c#

Robert Love
  • 12,447
  • 2
  • 48
  • 80