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 883a326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Nuget/VC-LTL.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
<dependencies>
<group targetFramework="native">
<dependency id="YY.NuGet.Import.Helper" version="1.0.0.4" />
<dependency id="YY-Thunks" version="[1.1.1-Beta1,)"/>
<dependency id="YY-Thunks" version="1.1.2-Beta4"/>
</group>
<group targetFramework="net8.0-windows7.0">
<dependency id="YY-Thunks" version="[1.1.1-Beta1,)"/>
<dependency id="YY-Thunks" version="1.1.2-Beta4"/>
</group>
</dependencies>
</metadata>
Expand Down
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 883a326

Please sign in to comment.