Skip to content

Commit

Permalink
Update Directory.Build.props
Browse files Browse the repository at this point in the history
Update Directory.Build.props
  • Loading branch information
Gaoyifei1011 committed Dec 31, 2024
1 parent f7ba92d commit 3117255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<TargetFrameworkMoniker>native,Version=v0.0</TargetFrameworkMoniker>
<!--指定自己的体系为native-->
<NuGetTargetMoniker Condition="'$(NuGetTargetMoniker)' == ''">native,Version=v0.0</NuGetTargetMoniker>
<TargetFrameworkMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v5.0</TargetFrameworkMoniker>
<NuGetTargetMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v5.0</NuGetTargetMoniker>
<TargetFrameworkMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v9.0</TargetFrameworkMoniker>
<NuGetTargetMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v9.0</NuGetTargetMoniker>
<!--如果不指定这一行,那么arm64平台会找不到RID而失败-->
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == ''">win;win-x86;win-x64;win-arm;win-arm64;win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
</PropertyGroup>

<!--从兼容性考虑,继续向上搜索 Directory.Build.props-->
<PropertyGroup>
<NoWarn>CS0169;CS0649;NU1701;NU1702</NoWarn>
<NoWarn>CS0169;CS0649;IDE0079;NU1702</NoWarn>
<DirectoryBuildPropsPath>$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))</DirectoryBuildPropsPath>
</PropertyGroup>
<Import Project="$(DirectoryBuildPropsPath)" Condition="'$(DirectoryBuildPropsPath)' != ''" />
Expand Down

0 comments on commit 3117255

Please sign in to comment.