作者:heimao | 来源:互联网 | 2023-07-27 10:52
ImusingVisualStudioTeamServicestoautomatethecreationofanugetpackage.Thispackagehas
I'm using Visual Studio Team Services to automate the creation of a nuget package. This package has a dependency on another nuget package (Newtonsoft.Json v8.0.3). I have configured a Nuget Packager task as part of the build:
我正在使用Visual Studio Team Services自动创建nuget包。这个包依赖于另一个nuget包(Newtonsoft.Json v8.0.3)。我已将Nuget Packager任务配置为构建的一部分:
But the generated package doesn't contain the reference to the nuget package:
但生成的包不包含对nuget包的引用:
Running the following script on my local machine to generate the package:
在我的本地计算机上运行以下脚本以生成程序包:
nuget pack myproject.csproj -Symbols -IncludeReferencedProjects -Properties COnfiguration=Release -OutputDirectory bin/Release
I can see that the dependency is added to the generated package:
我可以看到依赖项被添加到生成的包中:
What am I missing here? Why the dependencies are not being added to to package that is being generated on the build server?
我在这里想念的是什么?为什么没有将依赖项添加到构建服务器上生成的包中?
2 个解决方案