Skip to content

Commit

Permalink
Merge branch 'dev' of http://git.newlifex.com/NewLife/X into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
猿人易 committed Nov 13, 2024
2 parents 0af9186 + d2fda19 commit c45a77c
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion NewLife.Core/Http/HttpHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public static async Task<String> PostFormAsync(this HttpClient client, String re
{
content = new StringContent(str, Encoding.UTF8, "application/x-www-form-urlencoded");
}
#if NET5_0
#if NET5_0_OR_GREATER
else if (data is IDictionary<String?, String?> dic)
{
content = new FormUrlEncodedContent(dic);
Expand Down
24 changes: 15 additions & 9 deletions NewLife.Core/NewLife.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0;net6.0;net5.0-windows;net6.0-windows;net7.0;net7.0-windows;net8.0;net8.0-windows;net9.0;net9.0-windows</TargetFrameworks>
<TargetFrameworks>net45;net461;net462;netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0;net6.0;net5.0-windows;net6.0-windows;net7.0;net7.0-windows;net8.0;net8.0-windows;net9.0;net9.0-windows</TargetFrameworks>
<AssemblyName>NewLife.Core</AssemblyName>
<RootNamespace>NewLife</RootNamespace>
<AssemblyTitle>NewLife组件核心库</AssemblyTitle>
Expand Down Expand Up @@ -45,7 +45,7 @@
</PackageReference>
</ItemGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='net45' or '$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net5.0-windows' or '$(TargetFramework)'=='net6.0-windows' or '$(TargetFramework)'=='net7.0-windows' or '$(TargetFramework)'=='net8.0-windows' or '$(TargetFramework)'=='net9.0-windows'">
<PropertyGroup Condition="'$(TargetFramework)'=='net45' or '$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net462' or '$(TargetFramework)'=='net5.0-windows' or '$(TargetFramework)'=='net6.0-windows' or '$(TargetFramework)'=='net7.0-windows' or '$(TargetFramework)'=='net8.0-windows' or '$(TargetFramework)'=='net9.0-windows'">
<DefineConstants>$(DefineConstants);__WIN__</DefineConstants>
</PropertyGroup>

Expand All @@ -62,25 +62,31 @@
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="8.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net9.0-windows'">
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="9.0.0-rc.1.24452.1" />
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" TargetingPackVersion="9.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<!--<PackageReference Include="IndexRange" Version="1.0.2" />-->
<PackageReference Include="System.Memory" Version="4.6.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net462'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Memory" Version="4.6.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net45' or '$(TargetFramework)'=='net461'">
<ItemGroup Condition="'$(TargetFramework)'=='net45'">
<!--<PackageReference Include="System.Net.Http" Version="4.3.4" />-->
<!--<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />-->
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net45' or '$(TargetFramework)'=='net461'">

<ItemGroup Condition="'$(TargetFramework)'=='net45' or '$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net462'">
<Using Include="System.Net.Http" />
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System.Management" />
Expand Down
2 changes: 1 addition & 1 deletion Readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
核心库教程:[https://newlifex.com/core](https://newlifex.com/core)

## 新生命项目矩阵
各项目默认支持net8.0/netstandard2.1/netstandard2.0/net4.61/net4.5,旧版(2023.0401)支持net4.0/net2.0
各项目默认支持net9.0/netstandard2.1/netstandard2.0/net4.61/net4.5,旧版(2023.0401)支持net4.0/net2.0

| 项目 | 年份 | 说明 |
| :--------------------------------------------------------------: | :---: | -------------------------------------------------------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion Samples/Zero.EchoServer/Zero.EchoServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AssemblyTitle>回声服务器</AssemblyTitle>
<Description>网络回声服务端,把收到的数据原样发回去,用于网络性能压测</Description>
<Company>新生命开发团队</Company>
Expand Down
2 changes: 1 addition & 1 deletion Samples/Zero.HttpServer/Zero.HttpServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AssemblyTitle>Http服务器</AssemblyTitle>
<Description>轻量级Http服务器,支持WebSocket,可用于追求简单Http服务的场景,例如暴露硬件控制为Http接口,如打印组件</Description>
<Company>新生命开发团队</Company>
Expand Down
2 changes: 1 addition & 1 deletion Samples/Zero.Server/Zero.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AssemblyTitle>网络服务器</AssemblyTitle>
<Description>高性能网络服务器,单机最高400万连接,可用于建立各种协议的网络服务器</Description>
<Company>新生命开发团队</Company>
Expand Down
4 changes: 2 additions & 2 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net45;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net45;net461;net462;net8.0;net9.0</TargetFrameworks>
<VersionPrefix>9.0</VersionPrefix>
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
Expand All @@ -26,7 +26,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Stardust" Version="3.1.2024.1101" />
<PackageReference Include="NewLife.XCode" Version="11.16.2024.1101" />
<PackageReference Include="NewLife.XCode" Version="11.16.2024.1112-beta0943" />
<!--<PackageReference Include="System.Speech" Version="7.0.0" />-->
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Test2/Test2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Stardust" Version="3.1.2024.1101" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NewLife.Core\NewLife.Core.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions XUnitTest.Core/XUnitTest.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
<RootNamespace>XUnitTest</RootNamespace>
<DebugType>pdbonly</DebugType>
Expand Down Expand Up @@ -55,11 +55,11 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="9.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="NewLife.Modbus" Version="1.8.2024.426-beta1011" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2024.1006" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2024.1102-beta0202" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit c45a77c

Please sign in to comment.