Browse Source

Execute ApplyStackExtension target only if Visual C++ tools can be found. This fixes build fails when using `dotnet build`. Note that the target only works when building using classic msbuild with Visual Studio and VC++/Windows SDK installed.

pull/2523/head
Siegfried Pammer 4 years ago
parent
commit
5c78dbc31e
  1. 4
      ILSpy/ILSpy.csproj

4
ILSpy/ILSpy.csproj

@ -133,8 +133,8 @@
<Touch Files="@(SortResXStamp)" AlwaysCreate="true" /> <Touch Files="@(SortResXStamp)" AlwaysCreate="true" />
</Target> </Target>
<Target Name="ApplyStackExtension" AfterTargets="PostBuildEvent"> <Target Name="ApplyStackExtension" AfterTargets="PostBuildEvent" Condition="'$(VCToolsVersion)'!=''">
<Exec Condition="'$(VCToolsVersion)'!=''" Command="&quot;$(VCBasePath)Tools\MSVC\$(VCToolsVersion)\bin\Hostx64\x64\editbin.exe&quot; /stack:16777216 &quot;$(TargetPath)&quot;&#xD;&#xA;EXIT 0" /> <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;$(TargetFrameworkSDKToolsDirectory)sn.exe&quot; -R &quot;$(TargetPath)&quot; &quot;$(AssemblyOriginatorKeyFile)&quot;" />
</Target> </Target>
</Project> </Project>

Loading…
Cancel
Save