mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Conditional-ize pwsh/powershell in PS cmdlet project. See #3019.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec 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