I'm creating nupkg files from csproj files using the following command:
我正在使用以下命令从csproj文件创建nupkg文件:
nuget pack pathToMy.csproj
When I perform this command against one of my csproj files the nupkg contains all of the dependencies and all of the assemblies for my project references. However, when I run the same command against a csproj file in another solution I only get the dependencies. I don't get any my project referenced assemblies.
当我对我的一个csproj文件执行此命令时,nupkg包含我的项目引用的所有依赖项和所有程序集。但是,当我在另一个解决方案中对csproj文件运行相同的命令时,我只获得依赖项。我没有得到任何我的项目引用程序集。
Any thoughts on this?
有什么想法吗?
1 个解决方案
#1
0
Did you remember to build the project first? If you haven't compiled the project, then NuGet pack won't pick up the project output.
你还记得先建立这个项目吗?如果您还没有编译项目,那么NuGet包将不会获取项目输出。
You can also try:
你也可以尝试:
nuget pack pathToMy.csproj -Build
That will cause NuGet to build your project first.
这将导致NuGet首先构建您的项目。
#1
0
Did you remember to build the project first? If you haven't compiled the project, then NuGet pack won't pick up the project output.
你还记得先建立这个项目吗?如果您还没有编译项目,那么NuGet包将不会获取项目输出。
You can also try:
你也可以尝试:
nuget pack pathToMy.csproj -Build
That will cause NuGet to build your project first.
这将导致NuGet首先构建您的项目。