Skip to content

Commit

Permalink
Merge pull request #134 from Ky7m/cross-platform-build
Browse files Browse the repository at this point in the history
Fix post build events to add ability build solution on non-Windows platforms.
  • Loading branch information
jimmyca15 authored Sep 6, 2017
2 parents 7be4f40 + 0631eba commit b21c937
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Packager/Packager/Packager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
</PropertyGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="dotnet.exe restore $(ProjectDir)..\Bundle" />
<Exec Command="dotnet restore $(ProjectDir)../Bundle" />
</Target>
<Target Name="PostPostBuild" AfterTargets="PostBuild">
<Exec Command="&quot;$(MsBuildToolsPath)\msbuild.exe&quot; $(ProjectDir)..\Bundle\Bundle.csproj /t:publish /p:PublishDir=$(ProjectDir)..\..\Microsoft.IIS.Administration\plugins /p:Configuration=$(Configuration) /p:SignType=$(SignType) /p:SigningIdentity=$(SigningIdentity)" />
<Exec Condition="'$(MSBuildRuntimeType)' == 'Core'" Command="dotnet msbuild $(ProjectDir)../Bundle/Bundle.csproj /t:publish /p:PublishDir=$(ProjectDir)../../Microsoft.IIS.Administration/plugins /p:Configuration=$(Configuration)" />
<Exec Condition="'$(MSBuildRuntimeType)' != 'Core'" Command="&quot;$(MsBuildToolsPath)\msbuild.exe&quot; $(ProjectDir)..\Bundle\Bundle.csproj /t:publish /p:PublishDir=$(ProjectDir)..\..\Microsoft.IIS.Administration\plugins /p:Configuration=$(Configuration) /p:SignType=$(SignType) /p:SigningIdentity=$(SigningIdentity)" />
</Target>
</Project>
</Project>

0 comments on commit b21c937

Please sign in to comment.