Skip to content

Commit

Permalink
Bug, 解决.net x86时Platform值错误导致VC-LTL无法生效
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Jul 14, 2024
1 parent fba5260 commit 69f3e0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Nuget/build/net8.0-windows7.0/VC-LTL.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<LTLPlatform Condition="'$(RuntimeIdentifier)'=='win-arm64'">ARM64</LTLPlatform>
<LTLPlatform Condition="'$(RuntimeIdentifier)'=='win-arm'">ARM</LTLPlatform>
<LTLPlatform Condition="'$(RuntimeIdentifier)'=='win-x64'">x64</LTLPlatform>
<LTLPlatform Condition="'$(RuntimeIdentifier)'=='win-x86'">x86</LTLPlatform>

<LTLPlatform Condition="'$(RuntimeIdentifier)'=='win-x86'">Win32</LTLPlatform>

<!--默认兼容到Windows Vista-->
<LTLSupportedOSPlatformVersion>6.0.6000.0</LTLSupportedOSPlatformVersion>
Expand All @@ -20,7 +19,7 @@
<LTLWindowsTargetPlatformMinVersion Condition="'$(LTLWindowsTargetPlatformMinVersion)' == '' and '$(LTLPlatform)'=='ARM'">6.2.9200.0</LTLWindowsTargetPlatformMinVersion>
<LTLWindowsTargetPlatformMinVersion Condition="'$(LTLWindowsTargetPlatformMinVersion)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(LTLSupportedOSPlatformVersion), 6.0))">6.0.6000.0</LTLWindowsTargetPlatformMinVersion>
<LTLWindowsTargetPlatformMinVersion Condition="'$(LTLWindowsTargetPlatformMinVersion)' == '' and '$(LTLPlatform)'=='x64'">5.2.3790.0</LTLWindowsTargetPlatformMinVersion>
<LTLWindowsTargetPlatformMinVersion Condition="'$(LTLWindowsTargetPlatformMinVersion)' == '' and '$(LTLPlatform)'=='x86'">5.1.2600.0</LTLWindowsTargetPlatformMinVersion>
<LTLWindowsTargetPlatformMinVersion Condition="'$(LTLWindowsTargetPlatformMinVersion)' == '' and '$(LTLPlatform)'=='Win32'">5.1.2600.0</LTLWindowsTargetPlatformMinVersion>
</PropertyGroup>
<ItemGroup Condition="'$(LTLWindowsTargetPlatformMinVersion)' != '' and '$(LTLPlatform)' != ''">
<AdditionalNativeLibraryDirectories Include="$(MSBuildThisFileDirectory)..\native\TargetPlatform\$(LTLWindowsTargetPlatformMinVersion)\lib\$(LTLPlatform)" />
Expand Down

0 comments on commit 69f3e0f

Please sign in to comment.