Skip to content

Commit

Permalink
Repair ILRepack command to produce correct assembly name
Browse files Browse the repository at this point in the history
/out: command must have desired assembly name as file name before extension
  • Loading branch information
JohnThomson committed May 21, 2015
1 parent 1ba83c7 commit 93808e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Squirrel/Squirrel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PostBuildEvent>cd "$(TargetDir)"
"$(SolutionDir)packages\ILRepack.1.26.0\tools\ILRepack.exe" /internalize /out:$(TargetFileName).tmp $(TargetFileName) Mono.Cecil.dll NuGet.Core.dll
del "$(TargetFileName)"
ren "$(TargetFileName).tmp" "$(TargetFileName)"</PostBuildEvent>
<PostBuildEvent>
cd "$(TargetDir)"
ren "$(TargetFileName)" "$(TargetFileName).tmp.dll"
"$(SolutionDir)packages\ILRepack.1.26.0\tools\ILRepack.exe" /internalize /out:$(TargetFileName) $(TargetFileName).tmp.dll Mono.Cecil.dll NuGet.Core.dll
del "$(TargetFileName).tmp.dll"
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 93808e5

Please sign in to comment.