Skip to content

Commit

Permalink
Apply stack extension to ILSpy.exe host binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed Mar 21, 2022
1 parent ccccf58 commit c2085cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ILSpy/ILSpy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@
</ItemGroup>

<PropertyGroup>
<VCBasePath>$(MSBuildToolsPath)\..\..\..\VC\</VCBasePath>
<VCToolsVersionPropsFileNameDefault>Microsoft.VCToolsVersion.default.props</VCToolsVersionPropsFileNameDefault>
<VCBasePath>$(MSBuildToolsPath)\..\..\..\VC\</VCBasePath>
<!-- In VS 2022 there is an extra directory level that's why we need to add one more '..' -->
<VCBasePath Condition="!Exists('$(VCBasePath)Auxiliary\Build\$(VCToolsVersionPropsFileNameDefault)')">$(MSBuildToolsPath)\..\..\..\..\VC\</VCBasePath>
<VCToolsVersionPropsFile>$(VCBasePath)Auxiliary\Build\$(VCToolsVersionPropsFileNameDefault)</VCToolsVersionPropsFile>
</PropertyGroup>

Expand All @@ -126,7 +128,6 @@
</Target>

<Target Name="ApplyStackExtension" AfterTargets="PostBuildEvent" Condition="'$(VCToolsVersion)'!=''">
<Exec Command="&quot;$(VCBasePath)Tools\MSVC\$(VCToolsVersion)\bin\Hostx64\x64\editbin.exe&quot; /stack:16777216 &quot;$(TargetPath)&quot;&#xD;&#xA;EXIT 0" />
<Exec Command="&quot;$(TargetFrameworkSDKToolsDirectory)sn.exe&quot; -R &quot;$(TargetPath)&quot; &quot;$(AssemblyOriginatorKeyFile)&quot;" />
<Exec Command="&quot;$(VCBasePath)Tools\MSVC\$(VCToolsVersion)\bin\Hostx64\x64\editbin.exe&quot; /stack:16777216 &quot;$(TargetDir)$(TargetName).exe&quot;&#xD;&#xA;EXIT 0" />
</Target>
</Project>

0 comments on commit c2085cb

Please sign in to comment.