From 3fa9b39ec3f7072e656ed0536fa243f58dcde9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91=E9=87=91YunjinXu?= Date: Thu, 12 Dec 2024 13:57:10 +0800 Subject: [PATCH] build: add strong name signing to library and unit test projects - Add strong name key file src/dtm-labs-client-csharp.snk - Update dependencies.props with strong name key - Sign projects with snk file --- build/dependencies.props | 9 ++++----- src/DtmCommon/DtmCommon.csproj | 18 +++++++++++++----- src/DtmDapr/DtmDapr.csproj | 8 ++++++++ src/DtmMongoBarrier/DtmMongoBarrier.csproj | 8 ++++++++ .../DtmSERedisBarrier.csproj | 8 ++++++++ src/Dtmcli/Dtmcli.csproj | 12 ++++++++++-- src/Dtmgrpc/Dtmgrpc.csproj | 10 +++++++++- src/Dtmworkflow/Dtmworkflow.csproj | 10 +++++++++- src/dtm-labs-client-csharp.snk | Bin 0 -> 1172 bytes tests/BusiGrpcService/BusiGrpcService.csproj | 6 ++++++ tests/Dtmcli.Tests/Dtmcli.Tests.csproj | 8 ++++++++ .../Dtmgrpc.IntegrationTests.csproj | 9 +++++++++ tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj | 8 ++++++++ .../Dtmworkflow.Tests.csproj | 8 ++++++++ 14 files changed, 108 insertions(+), 14 deletions(-) create mode 100644 src/dtm-labs-client-csharp.snk diff --git a/build/dependencies.props b/build/dependencies.props index 716c684..6787615 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -1,5 +1,9 @@ + + + 0024000004800000140100000602000000240000525341310008000001000100af985b61d0182de7678c452f994cd186320feeb7706d175663b9c8659e03ff14098841d1c633133fca59e1044f5f16edaf7ae9c47afa1076ff83a21d86b3f1202f532f404498079dca32c3d4fb35cda2603237291220fe61fe17865654c93d7dceffe0bbd47106a73b57319af4696e422cb5c6c57fcdf1ab491e9c81a5b28a2ef160f31fcada307a4388c2f25a66d441950f75df7edae2e750320d01ab2e446b2af095111e08d95665e9595c2070502ff055f1a6289c1f0bdb04983699403e1cfb060efc66e172501859fc2a7c42c7deede9ac35fbd7d62e4baaa293b1eaae3e1732e3037c4fb995bb9ad33afdc177a07ef5124c5370700e6b517315d5e0a798 + ad31ee3e27a4d060 2.0.123 6.0.7 @@ -14,17 +18,13 @@ 6.0.0 6.0.0 6.0.0 - 3.22.1 2.52.0 2.52.0 - 2.19.0 2.6.96 - - 2.52.0 2.2.5 @@ -37,6 +37,5 @@ 1.22.0 5.1.0 6.5.0 - diff --git a/src/DtmCommon/DtmCommon.csproj b/src/DtmCommon/DtmCommon.csproj index 09e5a71..cc6e79f 100644 --- a/src/DtmCommon/DtmCommon.csproj +++ b/src/DtmCommon/DtmCommon.csproj @@ -4,14 +4,16 @@ netstandard2.0;netstandard2.1;net6.0;net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk - - - - - + + + + + @@ -40,4 +42,10 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/src/DtmDapr/DtmDapr.csproj b/src/DtmDapr/DtmDapr.csproj index eb92f84..095e978 100644 --- a/src/DtmDapr/DtmDapr.csproj +++ b/src/DtmDapr/DtmDapr.csproj @@ -6,10 +6,18 @@ dtm,dapr,csharp,distributed transaction,tcc,saga,msg enable enable + true + ..\dtm-labs-client-csharp.snk + + + dtm-labs-client-csharp.snk + + + diff --git a/src/DtmMongoBarrier/DtmMongoBarrier.csproj b/src/DtmMongoBarrier/DtmMongoBarrier.csproj index 3ead9af..8aa6c14 100644 --- a/src/DtmMongoBarrier/DtmMongoBarrier.csproj +++ b/src/DtmMongoBarrier/DtmMongoBarrier.csproj @@ -4,6 +4,8 @@ netstandard2.0;netstandard2.1;net6.0;net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk @@ -14,4 +16,10 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/src/DtmSERedisBarrier/DtmSERedisBarrier.csproj b/src/DtmSERedisBarrier/DtmSERedisBarrier.csproj index 4ac2436..1309da1 100644 --- a/src/DtmSERedisBarrier/DtmSERedisBarrier.csproj +++ b/src/DtmSERedisBarrier/DtmSERedisBarrier.csproj @@ -4,6 +4,8 @@ netstandard2.0;netstandard2.1;net6.0;net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk @@ -14,4 +16,10 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/src/Dtmcli/Dtmcli.csproj b/src/Dtmcli/Dtmcli.csproj index d794e6e..b0d507f 100644 --- a/src/Dtmcli/Dtmcli.csproj +++ b/src/Dtmcli/Dtmcli.csproj @@ -4,11 +4,13 @@ netstandard2.0;netstandard2.1;net6.0;net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk - - + + @@ -20,5 +22,11 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/src/Dtmgrpc/Dtmgrpc.csproj b/src/Dtmgrpc/Dtmgrpc.csproj index 243f376..cb8b886 100644 --- a/src/Dtmgrpc/Dtmgrpc.csproj +++ b/src/Dtmgrpc/Dtmgrpc.csproj @@ -4,6 +4,8 @@ netstandard2.0;netstandard2.1;net6.0;net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk @@ -11,7 +13,7 @@ - + @@ -27,6 +29,12 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/src/Dtmworkflow/Dtmworkflow.csproj b/src/Dtmworkflow/Dtmworkflow.csproj index f978bfc..3e1af73 100644 --- a/src/Dtmworkflow/Dtmworkflow.csproj +++ b/src/Dtmworkflow/Dtmworkflow.csproj @@ -4,6 +4,8 @@ net7.0 a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端 dtm,csharp,distributed transaction,tcc,saga,msg + true + ..\dtm-labs-client-csharp.snk @@ -12,7 +14,13 @@ - + + + + + + dtm-labs-client-csharp.snk + diff --git a/src/dtm-labs-client-csharp.snk b/src/dtm-labs-client-csharp.snk new file mode 100644 index 0000000000000000000000000000000000000000..885c44da4a828c650b643ca12ed146b1793b3dcc GIT binary patch literal 1172 zcmV;F1Z(>T0ssI2Bme+XQ$aES2mk;900986m|J1c7%k^#j72Y*Owooi5AL^cZ5LK! zxyWUn1OF5Wh(XcDGZR0`S>XgvUl#4Jdg;V^`Ve;igQ6XVv+*D=Q!hY7mLL+wZ_GN&GD;A9-M)tvWhP8 zVDlf!+Aw-Uh{Ez(X4FBI4|U&u+T!O>G7SN%E<|f8@RboB2-#L;=~-MLa8NJsRq>`M zoF5C@1ei9NKt3G%1`hmY;c`$IS^O$|LdV|i>8v&T*VZmes-lyz>aIQ)GUEe$Pq~%5 zn$tS{!FQm3^%6`|aBvQ5QF9g5;HQ}X=9G|X%#(txY@>H)$WT8U00{Y~=w)T2E`DxH z_;?-DBnmG%JyXI3PcN!;Wo+%7t0B5sVc;!@AU-gy&6NA5o`u*7F}%#r-h9n>1F!Q- z3jIJ1!Q2v4-`?7W3+2hnOaU5J?&fkAowqY}JUP$KG+e|YE?Xn;{K9VK5kKEiesgSS zq>7i+pLUpnY)Q0}hz*6yGVoXa@B4Zvy07ja(HV;YNuWQC5X}4p5Z!ksZLHAIxU^Hr zx-^4asFtKjh}0Vupn|S|Ox}(=wPr(gZ}av*PSVq1LR*(sq=^LfQ`+Ep3H~Hq~|OiQhJm@UaNHZ zy5GW-q4E0@%P{BkhzlWeh*o=Vle>U4lPxqZWgILGOGLpDIS;Ie+xBH~%ItxGwbeW@ zJSVQrCgm>cW-F_^6s0++3envOPH(!Mnu*%rQ56Do*n*9INNrI+_RG?F2rf=sX9+WY z>zjLhS?4KX31h}ad2ZEuTCWVWF3E4(%&@k>06#u)x~V5IJ%ss$o+xg&;BQ-UO_XH^ zND&CWhCuA|cG0qq3W09laJ?$}xMd<6$oA$(CKnR?z*{jz5SgEVR62-LjKXF2mGYXc z8{L2%36RBG+TL*tkc=my?HBu&CzI6)?}YTh?qCw~|p ze%qKCZ&cwqW&NHO0!0zHwZvBjFc3x6UWM1_3_J4RM + + + dtm-labs-client-csharp.snk + + + diff --git a/tests/Dtmcli.Tests/Dtmcli.Tests.csproj b/tests/Dtmcli.Tests/Dtmcli.Tests.csproj index 063bd26..8b85860 100644 --- a/tests/Dtmcli.Tests/Dtmcli.Tests.csproj +++ b/tests/Dtmcli.Tests/Dtmcli.Tests.csproj @@ -5,6 +5,8 @@ false + true + ..\..\src\dtm-labs-client-csharp.snk @@ -27,4 +29,10 @@ + + + dtm-labs-client-csharp.snk + + + diff --git a/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj b/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj index 28b9aec..5a5f808 100644 --- a/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj +++ b/tests/Dtmgrpc.IntegrationTests/Dtmgrpc.IntegrationTests.csproj @@ -5,6 +5,8 @@ false + true + ..\..\src\dtm-labs-client-csharp.snk @@ -39,4 +41,11 @@ + + + + dtm-labs-client-csharp.snk + + + diff --git a/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj b/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj index 428f82a..6abfab3 100644 --- a/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj +++ b/tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj @@ -4,6 +4,8 @@ net8.0 false + true + ..\..\src\dtm-labs-client-csharp.snk @@ -24,6 +26,12 @@ + + + + dtm-labs-client-csharp.snk + + diff --git a/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj b/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj index f6bd27d..1a3985a 100644 --- a/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj +++ b/tests/Dtmworkflow.Tests/Dtmworkflow.Tests.csproj @@ -6,6 +6,8 @@ enable false + true + ..\..\src\dtm-labs-client-csharp.snk @@ -26,4 +28,10 @@ + + + dtm-labs-client-csharp.snk + + +