From d1c4921b9babe7c37d74197e7b75e9340f781e0d Mon Sep 17 00:00:00 2001 From: endink Date: Fri, 10 Feb 2023 12:06:46 +0800 Subject: [PATCH] release 1.0.6 for enum serialization --- .gitignore | 2 ++ Thrifty.sln | 6 ++-- packge.bat | 34 +++++++++++++++++++ shared.props | 5 +++ src/Thrifty.Core/Thrifty.Core.csproj | 3 +- .../Thrifty.MicroServices.csproj | 3 +- .../Thrifty.Nifty.Client.csproj | 3 +- src/Thrifty.Nifty/Thrifty.Nifty.csproj | 3 +- src/Thrifty.Services/Thrifty.Services.csproj | 3 +- 9 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 packge.bat create mode 100644 shared.props diff --git a/.gitignore b/.gitignore index 8b88da5..26b3370 100644 --- a/.gitignore +++ b/.gitignore @@ -246,3 +246,5 @@ ModelManifest.xml # FAKE - F# Make .fake/ /test/Swifty.Benchmark/BenchmarkDotNet.Artifacts/results + +/nupkgs/**/* diff --git a/Thrifty.sln b/Thrifty.sln index 74e3ecc..6ab4371 100644 --- a/Thrifty.sln +++ b/Thrifty.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27004.2009 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32929.386 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AD94B480-F25E-4869-B55E-0674490BF85A}" EndProject @@ -13,8 +13,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution GlobalAssemblyInfo.cs = GlobalAssemblyInfo.cs LICENSE = LICENSE nuget-push.bat = nuget-push.bat + packge.bat = packge.bat README.md = README.md run-benchmark.bat = run-benchmark.bat + shared.props = shared.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{30339955-A358-4D08-923E-82BFA5DF2B97}" diff --git a/packge.bat b/packge.bat new file mode 100644 index 0000000..27f9557 --- /dev/null +++ b/packge.bat @@ -0,0 +1,34 @@ +set PROJ_DIR=%~dp0src +set OUT=%~dp0nupkgs +dotnet pack %PROJ_DIR%\Thrifty.Core\Thrifty.Core.csproj --output %OUT% -c Release +dotnet pack %PROJ_DIR%\Thrifty.MicroServices\Thrifty.MicroServices.csproj --output %OUT% -c Release +dotnet pack %PROJ_DIR%\Thrifty.Nifty\Thrifty.Nifty.csproj --output %OUT% -c Release +dotnet pack %PROJ_DIR%\Thrifty.Nifty.Client\Thrifty.Nifty.Client.csproj --output %OUT% -c Release +dotnet pack %PROJ_DIR%\Thrifty.Services\Thrifty.Services.csproj --output %OUT% -c Release + + +@echo off +setlocal enabledelayedexpansion + +echo ɾ³ý·ûºÅ£º +for /R %OUT% %%f in (*.symbols.nupkg) do ( +del /f /q %%f +) + + +echo Òª·¢²¼µÄ°ü£º +for /R %OUT% %%f in (*.nupkg) do ( +echo publish %%f +) + + +set /p input=È·ÈÏ°´ y£¬ È¡Ïû°´ÈÎÒâ¼ü¡£ + +if /i not "%input%"=="y" goto exit + +for /R %dir% %%f in (*.nupkg) do ( +echo ¿ªÊ¼ÉÏ´« %%f +dotnet nuget push %%f -s https://api.nuget.org/v3/index.json +) + +pause \ No newline at end of file diff --git a/shared.props b/shared.props new file mode 100644 index 0000000..b80fa66 --- /dev/null +++ b/shared.props @@ -0,0 +1,5 @@ + + + 1.0.6 + + \ No newline at end of file diff --git a/src/Thrifty.Core/Thrifty.Core.csproj b/src/Thrifty.Core/Thrifty.Core.csproj index 1dc4001..6c48429 100644 --- a/src/Thrifty.Core/Thrifty.Core.csproj +++ b/src/Thrifty.Core/Thrifty.Core.csproj @@ -1,7 +1,6 @@  - 1.0.5 An attribute-based library for creating Thrift serializable types and services. Core library that include Thrifty for dotnet core. Copyright labijie.com Thrifty.Core @@ -22,7 +21,7 @@ true true - + diff --git a/src/Thrifty.MicroServices/Thrifty.MicroServices.csproj b/src/Thrifty.MicroServices/Thrifty.MicroServices.csproj index ee17ac2..81be463 100644 --- a/src/Thrifty.MicroServices/Thrifty.MicroServices.csproj +++ b/src/Thrifty.MicroServices/Thrifty.MicroServices.csproj @@ -1,7 +1,6 @@  - 1.0.5 An attribute-based library for creating Thrift serializable types and services. Copyright labijie.com Thrifty.MicroServices @@ -24,7 +23,7 @@ true true - + diff --git a/src/Thrifty.Nifty.Client/Thrifty.Nifty.Client.csproj b/src/Thrifty.Nifty.Client/Thrifty.Nifty.Client.csproj index e254bb5..c9a9025 100644 --- a/src/Thrifty.Nifty.Client/Thrifty.Nifty.Client.csproj +++ b/src/Thrifty.Nifty.Client/Thrifty.Nifty.Client.csproj @@ -1,7 +1,6 @@  - 1.0.5 An attribute-based library for creating Thrift serializable types and services, implementation of Thrift clients and servers on DotNetty. Copyright labijie.com Thrifty.Nifty.Client @@ -24,7 +23,7 @@ true true - + diff --git a/src/Thrifty.Nifty/Thrifty.Nifty.csproj b/src/Thrifty.Nifty/Thrifty.Nifty.csproj index 091a99f..c7dd035 100644 --- a/src/Thrifty.Nifty/Thrifty.Nifty.csproj +++ b/src/Thrifty.Nifty/Thrifty.Nifty.csproj @@ -1,7 +1,6 @@  - 1.0.5 An attribute-based library for creating Thrift serializable types and services, implementation of Thrift clients and servers on DotNetty. Copyright labijie.com Thrifty.Nifty @@ -21,7 +20,7 @@ true true - + diff --git a/src/Thrifty.Services/Thrifty.Services.csproj b/src/Thrifty.Services/Thrifty.Services.csproj index 5010b98..2716454 100644 --- a/src/Thrifty.Services/Thrifty.Services.csproj +++ b/src/Thrifty.Services/Thrifty.Services.csproj @@ -1,7 +1,6 @@  - 1.0.5 An attribute-based library for creating Thrift serializable types and services, implementation of Thrift clients and servers on DotNetty. Copyright labijie.com Thrifty.Services @@ -25,7 +24,7 @@ true true - +