Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
除了一个(隐藏的)子目录之外,删除目录全部内容的最佳方法是什么?谢谢!
<Target Name="DeleteMe"> <ItemGroup> <DeleteMe Include="$(PathRoot)/FolderToDelete/**/*.*" Exclude="$(PathRoot)/FolderToDelete/DoNotDeleteThisHiddenFolder/**/*.*" /> </ItemGroup> <Delete Files="@(DeleteMe)" /> </Target>