Create a Nuget package and include the package.config of each referenced project in the same solution file

I’m sure that he must have been asked before, but I still can’t find a specific answer.

I have a project called Testing.csproj that references Testing.Hack.csproj

Testing.Hack.csproj has pacakges.config dependencies with three packages:

  • Mypackage1
  • Mypackage2
  • Mypackage3

Now, when I create the Testing.csproj package for publication, it is successfully published with the IncludeReferencedProjects flag.

However, when I try to use the functionality of a test project, Testing.Hack complains that it cannot find MyPackage1.dll.

How can I include the packages.config dependencies mentioned in the Testing.Hack project.

I hope this question makes sense.

: Team city build. , , .

:

TeamCity .

:

nuget pack Testing.csproj -includereferencedprojects -output c:\localpackages

, package.config testing.csproj, test.hack.csproj. teamcity , , .

, nuget exe , teamcity.

+4

All Articles