-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add new strong-named assemblies for dtm client DtmCommon, Dtmc…
…li, Dtmgrpc, Dtmworkflow (#89) * build: add strong name key file for assembly signing - Add StringNameKey file and StringNamePublicKey properties for assembly signing * feat(strong-name): add strong-named assemblies for dtm client - Add new projects for creating strong-named assemblies - Dtmcli.StrongName - DtmCommon.StrongName, replace Dapper package with Dapper.StrongName - Dtmgrpc.StrongName - Dtmworkflow.StrongName - New assembly is copied from .csproj file, and links .cs and .proto file to compile - Update solution file to include new projects * build(workflow): add strong-name builds to release process.
- Loading branch information
Showing
9 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> | ||
<Description>a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端</Description> | ||
<PackageTags>dtm,csharp,distributed transaction,tcc,saga,msg</PackageTags> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\build\DtmClient.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<InternalsVisibleTo Include="Dtmgrpc.StrongName" Key="$(StringNameKey)"/> | ||
<InternalsVisibleTo Include="Dtmcli.StrongName" Key="$(StringNameKey)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Dapper.StrongName" Version="$(DapperPackageVersion)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> | ||
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion6)"/> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(MicrosoftExtensionsConfigurationNET6)"/> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="$(MicrosoftExtensionsHttpNET6)"/> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="$(MicrosoftExtensionsOptionsConfigurationExtensionsNET6)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'"> | ||
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion7)"/> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(MicrosoftExtensionsConfigurationNET7)"/> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="$(MicrosoftExtensionsHttpNET7)"/> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="$(MicrosoftExtensionsOptionsConfigurationExtensionsNET7)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonPackageVersion7)"/> | ||
<PackageReference Include="Microsoft.CSharp" Version="$(MicrosoftCSharpNSD21)"/> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(MicrosoftExtensionsConfigurationNSD21)"/> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="$(MicrosoftExtensionsHttpNSD21)"/> | ||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="$(MicrosoftExtensionsOptionsConfigurationExtensionsNSD21)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\DtmCommon\**\*.cs" Exclude="..\..\DtmCommon\obj\**\*.cs"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\build\DtmClient.snk"> | ||
<Link>DtmClient.snk</Link> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
34 changes: 34 additions & 0 deletions
34
src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> | ||
<Description>a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端</Description> | ||
<PackageTags>dtm,csharp,distributed transaction,tcc,saga,msg</PackageTags> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\build\DtmClient.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<InternalsVisibleTo Include="Dtmworkflow.StrongName" Key="$(StringNameKey)"/> | ||
<!--<None Include="$(MSBuildThisFileDirectory)../../README.md" Pack="true" PackagePath="/" />--> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0'"> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\DtmCommon.StrongName\DtmCommon.StrongName.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\Dtmcli\**\*.cs" Exclude="..\..\Dtmcli\obj\**\*.cs"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\build\DtmClient.snk"> | ||
<Link>DtmClient.snk</Link> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
38 changes: 38 additions & 0 deletions
38
src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> | ||
<Description>a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端</Description> | ||
<PackageTags>dtm,csharp,distributed transaction,tcc,saga,msg</PackageTags> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\build\DtmClient.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Protobuf Include="..\..\Dtmgrpc\dtmgpb\dtmgimp.proto" GrpcServices="Client"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Google.Protobuf" Version="$(GoogleProtobufPackageVersion)"/> | ||
<PackageReference Include="Grpc.Net.ClientFactory" Version="$(GrpcNetClientFactoryPackageVersion)"/> | ||
<PackageReference Include="Grpc.Tools" Version="$(GrpcToolsPackageVersion)"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\DtmCommon.StrongName\DtmCommon.StrongName.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\Dtmgrpc\**\*.cs" Exclude="..\..\Dtmgrpc\obj\**\*.cs"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\build\DtmClient.snk"> | ||
<Link>DtmClient.snk</Link> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
26 changes: 26 additions & 0 deletions
26
src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<Description>a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端</Description> | ||
<PackageTags>dtm,csharp,distributed transaction,tcc,saga,msg</PackageTags> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\build\DtmClient.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Dtmcli.StrongName\Dtmcli.StrongName.csproj"/> | ||
<ProjectReference Include="..\Dtmgrpc.StrongName\Dtmgrpc.StrongName.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\Dtmworkflow\**\*.cs" Exclude="..\..\Dtmworkflow\obj\**\*.cs"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\build\DtmClient.snk"> | ||
<Link>DtmClient.snk</Link> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |