Skip to content

Commit

Permalink
net6.0-windows对WinFrom的依赖由6.0.2降为6.0.0,避免某些机器只有net6.0.0/net6.0.1运行时,无…
Browse files Browse the repository at this point in the history
…法运行依赖于当前组件的应用。
  • Loading branch information
nnhy committed Jul 26, 2023
1 parent fae5d35 commit 1e6c0db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions NewLife.Core/NewLife.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@
<DefineConstants>$(DefineConstants);__WIN__</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net5.0-windows' or '$(TargetFramework)'=='net6.0-windows' or '$(TargetFramework)'=='net7.0-windows'">
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" />
<ItemGroup Condition="'$(TargetFramework)'=='net5.0-windows'">
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="5.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net6.0-windows'">
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="6.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net7.0-windows'">
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'!='netstandard2.1'">
Expand Down

0 comments on commit 1e6c0db

Please sign in to comment.