最近,我的构建服务器在以下目标上导致错误:
<Target Name="CopyFilesAndStuff" Condition="'@(CVParameters)'!=''" Outputs="%(CVParameters.Identity)" AfterTargets="CopyAllFilesToSingleFolderForMsdeploy">
<ItemGroup>
<TempItems Include="@(CVParameters->'%(Filename)%(Extension)'->Replace('.$(Configuration).config.xml', '.config'))" Exclude="obj\**\*.*;">
<!-- Define metadata based on original item for next step -->
<OriginalPath>%(Identity)</OriginalPath>
<SavedRecursiveDir>%(RecursiveDir)</SavedRecursiveDir>
</TempItems>
</ItemGroup>
<!-- Use new items along with their metadata for copying -->
<TransformXml Source="@(TempItems->'%(SavedRecursiveDir)%(Identity)')" Condition="$(Configuration) != Debug" Transform="@(TempItems->'%(OriginalPath)')" Destination="@(TempItems->'$(_PackageTempDir)\%(SavedRecursiveDir)%(Identity)')" />
</Target>
所有失败都发生在/obj
文件夹下。
问题
是否可以从处理/ obj文件夹中的文件中排除该规则?
我已经将Exclude="obj\**\*.*;"
添加到了<TempItems>
,但这无济于事。