在帖子Trying to exclude certain extensions doing a recursive copy (MSBuild)之后进行扩展。
我想排除属性组中定义的文件列表,以便我可以在teamcity / jenkins中配置它
<PropertyGroup>
<BuildConfiguration>Release</BuildConfiguration>
<Version>1.0.0.0</Version>
<MajorVersion>1</MajorVersion>
<MinorVersion>0</MinorVersion>
<Revision>0</Revision>
<Build>0</Build>
<ExcludedFiles>file1.dll;file2.dll</ExcludedFiles>
</PropertyGroup>
现在我想将这些排除在下面
<ItemGroup>
<ReleaseFiles Include="$(PathToOutput)\**\*.*" Exclude="$ExcludedFiles"/>
</ItemGroup>
<!--Copy files from Release directory to Version folder -->
<Copy SourceFiles="@(ReleaseFiles)"
DestinationFiles="@(ReleaseFiles->'$(DeployVersionPath)\%(RecursiveDir)%(Filename)%(Extension)')" />
定义我的属性组的正确语法是什么(&#34; ExcludedFiles&#34;)以及如何处理路径。假设所有排除的文件都在同一个文件夹中($(PathToOutput))?