Skip to content

Commit

Permalink
Add PostBuild.targets for each OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Metious committed Sep 4, 2022
1 parent 5b8cb75 commit 469cc84
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions PostBuild.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<PowerShell>powershell.exe</PowerShell>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' == 'Unix'">
<PowerShell>pwsh</PowerShell>
</PropertyGroup>
<Target Name="ZipFiles" AfterTargets="PostBuildEvent">
<Exec
Command="$(PowerShell) -ExecutionPolicy Bypass -NoProfile -NonInteractive -File $(SolutionDir)Scripts/SMLHelper-post-build.ps1 -SolutionDir $(SolutionDir) -ConfigurationName $(ConfigurationName) -TargetDir $(OutDir) -ProjectDir $(ProjectDir)"
/>
</Target>
</Project>

0 comments on commit 469cc84

Please sign in to comment.