Skip to content

Commit

Permalink
Fea, 改进NET项目对早期Windows SDK版本的识别
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Jul 14, 2024
1 parent bd617ef commit f5ffc8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NuGet/build/net8.0-windows7.0/YY-Thunks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='win-x86'">
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 10.0.19041.0))">YY_Thunks_for_Win10.0.19041.obj</YY_Thunks_File>
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 10.0))">YY_Thunks_for_Win10.0.10240.obj</YY_Thunks_File>

<!--特意兼容下早期的Windows SDK版本规范-->
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 8.0))">YY_Thunks_for_Win8.obj</YY_Thunks_File>
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 7.0))">YY_Thunks_for_Win7.obj</YY_Thunks_File>

<!--继续按系统版本划分-->
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 6.2))">YY_Thunks_for_Win8.obj</YY_Thunks_File>
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 6.1))">YY_Thunks_for_Win7.obj</YY_Thunks_File>
<YY_Thunks_File Condition="'$(YY_Thunks_File)' == '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetPlatformMinVersion), 6.0))">YY_Thunks_for_Vista.obj</YY_Thunks_File>
Expand Down

0 comments on commit f5ffc8a

Please sign in to comment.