In VS MSBuild we move group of files from one folder to another:
<ItemGroup>
<RenameFile Include="Main\App.*" />
</ItemGroup>
<Move SourceFiles="@(RenameFile)" DestinationFiles="%(RootDir)%(RenameFile.Directory)NewApp%(RenameFile.Extension)" />
It works fine, except one file: App.exe.config
, because it has double extension and it renamed to NewApp.config
instead NewApp.exe.config
(how it should be).
How to fix it?