Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 阿祖雷德维普斯努吉特包_C#_Tfs_Azure Devops_Nuget - Fatal编程技术网

C# 阿祖雷德维普斯努吉特包

C# 阿祖雷德维普斯努吉特包,c#,tfs,azure-devops,nuget,C#,Tfs,Azure Devops,Nuget,我有一个.net类库项目(4.7.2),它将构建在AzureDevops实例上。在构建管道中,一个步骤是基于相应的*.csproj文件创建一个nuget包。在类库项目中有文件夹。现在,当创建nuget包时,nuget包还包含项目的文件夹,而不仅仅是创建的*.dll文件。如何避免在创建的Nuget包中包含项目的文件夹?要明确控制包中包含哪些文件,可以在.nuspec fule中指定files标记 <files> <file src="bin\Debug\*.dll" ta

我有一个.net类库项目(4.7.2),它将构建在AzureDevops实例上。在构建管道中,一个步骤是基于相应的*.csproj文件创建一个nuget包。在类库项目中有文件夹。现在,当创建nuget包时,nuget包还包含项目的文件夹,而不仅仅是创建的*.dll文件。如何避免在创建的Nuget包中包含项目的文件夹?

要明确控制包中包含哪些文件,可以在.nuspec fule中指定files标记

<files>
    <file src="bin\Debug\*.dll" target="lib" />
    <file src="bin\Debug\*.pdb" target="lib" />
    <file src="tools\**\*.*" exclude="**\*.log" />
</files>


查看更多信息

使用
.nuspec
文件:@Franz Gsell您尝试过上述解决方案吗?进展如何?