Skip to content

Commit

Permalink
.net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
刘自龙 committed Nov 20, 2023
1 parent 560daa0 commit d150597
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Restore
run: |
dotnet restore NewLife.RocketMQ/NewLife.RocketMQ.csproj
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Build
run: |
dotnet build -c Release
2 changes: 1 addition & 1 deletion NewLife.RocketMQ/MqBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public virtual Boolean Start()
var addr = Aliyun?.Server;
if (!addr.IsNullOrEmpty() && addr.StartsWithIgnoreCase("http"))
{
var http = new HttpClient();
var http = new System.Net.Http.HttpClient();
var html = http.GetStringAsync(addr).Result;

if (!html.IsNullOrWhiteSpace()) NameServerAddress = html.Trim();
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 @@ RocketMQ,支持`.Net Framework/.netstandard/Mono`。
教程:[https://newlifex.com/core/rocketmq](https://newlifex.com/core/rocketmq)

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

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

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<OutputPath>..\Bin\Test</OutputPath>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion XUnitTestRocketMQ/XUnitTestRocketMQ.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<OutputPath>..\Bin\UnitTest</OutputPath>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down

0 comments on commit d150597

Please sign in to comment.