Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostBuildEvent not migrated correctly #285

Open
RichardD2 opened this issue Mar 3, 2021 · 0 comments
Open

PostBuildEvent not migrated correctly #285

RichardD2 opened this issue Mar 3, 2021 · 0 comments

Comments

@RichardD2
Copy link

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 &quot;$(TargetPath)&quot; &quot;$(SolutionDir)..\_bin\$(ConfigurationName)\&quot; /y /c&#xD;&#xA;xcopy &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(SolutionDir)..\_bin\$(ConfigurationName)\&quot; /y /c&#xD;&#xA;xcopy &quot;$(TargetDir)$(TargetName).xml&quot; &quot;$(SolutionDir)..\_bin\$(ConfigurationName)\&quot; /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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant