Skip to content

Commit 3f0cb17

Browse files
Use MSBuildToolsPath instead of DevEnvDir.
1 parent 36697a3 commit 3f0cb17

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ILSpy/ILSpy.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,13 @@
418418
<Copy SourceFiles="@(NuGetPackagesToCopy)" DestinationFolder="..\ILSpy.AddIn\packages" />
419419
</Target>
420420

421-
<Import Project="$(DevEnvDir)\..\..\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.props" />
421+
<PropertyGroup>
422+
<VCBasePath>$(MSBuildToolsPath)\..\..\..\VC\</VCBasePath>
423+
</PropertyGroup>
424+
425+
<Import Project="$(VCBasePath)Auxiliary\Build\Microsoft.VCToolsVersion.default.props" />
422426

423427
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
424-
<Exec Command="&quot;$(DevEnvDir)\..\..\VC\Tools\MSVC\$(VCToolsVersion)\bin\Hostx64\x64\editbin.exe&quot; /stack:16777216 &quot;$(TargetPath)&quot;&#xD;&#xA;EXIT 0" />
428+
<Exec Command="&quot;$(VCBasePath)Tools\MSVC\$(VCToolsVersion)\bin\Hostx64\x64\editbin.exe&quot; /stack:16777216 &quot;$(TargetPath)&quot;&#xD;&#xA;EXIT 0" />
425429
</Target>
426430
</Project>

0 commit comments

Comments
 (0)