[英]Nuget can't read AssemblyInfo.cs if called with full path
If calling nuget pack c:\\source\\project1\\project.nuspec
within the c:\\soruce\\project1 folder can't it read the details from AssemblyInfo.cs. 如果在c:\\ soruce \\ project1文件夹中调用
nuget pack c:\\source\\project1\\project.nuspec
,则无法从AssemblyInfo.cs中读取详细信息。 Visual Studio Team Services (former Visual Studio Online) is doing it that way and there for is it not possible to use a wildcard version number read from AssemblyInfo.cs. Visual Studio Team Services(以前的Visual Studio Online)就是这样做的,因此不可能使用从AssemblyInfo.cs读取的通配符版本号。 There don't seem to be any option in Nuget to set a working folder.
Nuget中似乎没有任何设置工作文件夹的选项。
The idea is to have nightly builds with the version increment on the build number. 想法是每夜进行一次构建,并在版本号上增加版本。
I usually create the nuget package file from the project file directly via: 我通常直接通过以下方式从项目文件中创建nuget软件包文件:
nuget pack MyProject.csproj
The generated package is named base on the version number in AssemblyInfo.cs. 生成的程序包基于AssemblyInfo.cs中的版本号命名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.