1

In TeamCity, I'm trying to create a NuGet package. It works, however only the main EXE is included in the package. When it gets deployed to a server, the dependent assemblies are missing, and so is the config file. I don't see an option to included the dependent assemblies. Is there a way to do so?

Instead of a nuspec file, I'm using the csproj file. The screenshot, below, shows that and the rest of the settings.

enter image description here

Bob Horn
  • 33,387
  • 34
  • 113
  • 219

1 Answers1

1

If you want to include additional files with your nuget package, *.nuspec file is obligatory. It should be in the same directory as your *.csproj file:

  • Your.Library.csproj
  • Your.Library.csproj.nuspec

Please refer to this documentation about adding files to nuget package: Adding a readme and other files

Peska
  • 3,980
  • 3
  • 23
  • 40
  • Is this still necessary for dependent assemblies? I'm not looking to add some stray file; just the assemblies on which my project depends. I was hoping `IncludeReferencedProjects` would help, but it doesn't seem to. – Bob Horn Jan 16 '18 at 13:43
  • Actually, I don't think it's true that nuspec is obligatory. See this: https://stackoverflow.com/a/48384248/279516 – Bob Horn Jan 22 '18 at 15:15