Skip to content

Commit

Permalink
Redistribute msvcp140.dll and concrt140.dll
Browse files Browse the repository at this point in the history
The wildcarding of msvcp is making the assumption that the msvcp number
will end in a zero - this seems to hold currently, but may change in the
future.
  • Loading branch information
icanhasmath committed Jun 27, 2024
1 parent 0d37cd6 commit 76f11e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PCbuild/pyproject.props
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses
<VCRedistDir Condition="$(Platform) == 'Win32'">$(VCRedistDir)x86\</VCRedistDir>
<VCRedistDir Condition="$(Platform) != 'Win32'">$(VCRedistDir)$(Platform)\</VCRedistDir>
</PropertyGroup>

<ItemGroup Condition="$(VCInstallDir) != ''">
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\msvcp*0.dll" />
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\msvcp*0_1.dll" />
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\concrt*.dll" />
</ItemGroup>

<Error Text="vcruntime14*.dll not found under $(VCInstallDir)" Condition="@(VCRuntimeDLL) == ''" />
<Error Text="vcruntime*.dll, msvcp*.dll, or concrt*.dll not found under $(VCInstallDir)" Condition="@(VCRuntimeDLL) == ''" />
<Message Text="VCRuntimeDLL: @(VCRuntimeDLL)" Importance="high" />
</Target>
</Project>

0 comments on commit 76f11e1

Please sign in to comment.