diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 22b618d..8005e86 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -18,15 +18,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup dotNET uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x + - name: Get Version + run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV - name: Build run: | - dotnet pack --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj - dotnet pack --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj + dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj + dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj - name: Publish run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f4fe2c5..823dd65 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,12 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x + - name: Get Version + run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV - name: Build run: | - dotnet pack -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj - dotnet pack -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj + dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj + dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj - name: Publish run: | diff --git a/Demo/Program.cs b/Demo/Program.cs index 5d797ee..0eccfbb 100644 --- a/Demo/Program.cs +++ b/Demo/Program.cs @@ -8,7 +8,7 @@ namespace Demo; internal class Program { - static void Main(string[] args) + static void Main(String[] args) { XTrace.UseConsole(); @@ -53,7 +53,7 @@ class BigController : IApi { public IApiSession Session { get; set; } - public int Sum(int a, int b) + public Int32 Sum(Int32 a, Int32 b) { Task.Run(async () => { @@ -64,7 +64,7 @@ public int Sum(int a, int b) return a + b; } - public string ToUpper(string str) => str.ToUpper(); + public String ToUpper(String str) => str.ToUpper(); public Packet Test(Packet pk) { diff --git a/NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj b/NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj index 57f7a93..99e951f 100644 --- a/NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj +++ b/NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj @@ -3,11 +3,11 @@ Library net6.0;net7.0;net8.0 - RPC服务扩展 - RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架 + 协议通信扩展库 + 提供WebApi应用级服务端 新生命开发团队 ©2002-2024 NewLife - 2.8 + 3.0 $([System.DateTime]::Now.ToString(`yyyy.MMdd`)) $(VersionPrefix).$(VersionSuffix) $(Version) @@ -31,7 +31,7 @@ https://github.com/NewLifeX/NewLife.Remoting git 新生命团队;X组件;NewLife;$(AssemblyName) - RPC服务 + 第三代协议通信库,增强RPC,引入主流Http/WebSockt/WebApi应用级封装 MIT true true diff --git a/NewLife.Remoting/NewLife.Remoting.csproj b/NewLife.Remoting/NewLife.Remoting.csproj index f65e3f2..2bf62e0 100644 --- a/NewLife.Remoting/NewLife.Remoting.csproj +++ b/NewLife.Remoting/NewLife.Remoting.csproj @@ -1,11 +1,11 @@  net45;net461;netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0 - RPC远程过程调用 - RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架 + 协议通信库 + 提供高性能RPC客户端服务端,提供Http/WebSocket客户端服务端,提供应用级客户端 新生命开发团队 ©2002-2024 新生命开发团队 - 2.8 + 3.0 $([System.DateTime]::Now.ToString(`yyyy.MMdd`)) $(VersionPrefix).$(VersionSuffix) $(Version) @@ -28,7 +28,7 @@ https://github.com/NewLifeX/NewLife.Remoting git 新生命团队;X组件;NewLife;$(AssemblyName) - RPC接口出入参支持IAccessor派生类,便于使用二进制序列化用户自定义消息,其它消息默认Json序列化 + 第三代协议通信库,增强RPC,引入主流Http/WebSockt/WebApi应用级封装 MIT true true diff --git a/Samples/IoTZero/Program.cs b/Samples/IoTZero/Program.cs index 21e79bc..5014307 100644 --- a/Samples/IoTZero/Program.cs +++ b/Samples/IoTZero/Program.cs @@ -1,5 +1,4 @@ using IoTZero; -using IoTZero.Common; using IoTZero.Services; using NewLife.Caching; using NewLife.Cube;