mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Fix PowerShell PostBuild failing when solution path contains spaces (#3669)
Quote the $(ProjectDir) and $(TargetDir) MSBuild properties in the Copy-Item commands so that paths with spaces are handled correctly. Co-authored-by: Myselfish <[email protected]>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Condition=" '$(OS)' == 'Windows_NT' " Command="powershell -Command "Copy-Item $(ProjectDir)manifest.psd1 $(TargetDir)$(TargetName).psd1"" />
|
||||
<Exec Condition=" '$(OS)' != 'Windows_NT' " Command="pwsh -Command "Copy-Item $(ProjectDir)manifest.psd1 $(TargetDir)$(TargetName).psd1"" />
|
||||
<Exec Condition=" '$(OS)' == 'Windows_NT' " Command="powershell -Command "Copy-Item '$(ProjectDir)manifest.psd1' '$(TargetDir)$(TargetName).psd1'"" />
|
||||
<Exec Condition=" '$(OS)' != 'Windows_NT' " Command="pwsh -Command "Copy-Item '$(ProjectDir)manifest.psd1' '$(TargetDir)$(TargetName).psd1'"" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user