-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Source project extract:
<PropertyGroup>
<PostBuildEvent>xcopy "$(TargetPath)" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).xml" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c</PostBuildEvent>
</PropertyGroup>Expected result:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy "$(TargetPath)" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).xml" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c" />
</Target>Actual result:
<PropertyGroup>
<OutputType>...</OutputType>
...
<PostBuildEvent>xcopy "$(TargetPath)" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).xml" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c</PostBuildEvent>
</PropertyGroup>
...
<PropertyGroup>
<PostBuildEvent>xcopy "$(TargetPath)" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c
xcopy "$(TargetDir)$(TargetName).xml" "$(SolutionDir)..\_bin\$(ConfigurationName)\" /y /c</PostBuildEvent>
</PropertyGroup>The command is inserted into the output project twice, and is not converted to the new syntax. VS2019 does not support the old syntax.
Using the latest version (4.1.3).
itsho, WojciechNagorski and ErikLevin
Metadata
Metadata
Assignees
Labels
No labels