Skip to content

Commit 955c730

Browse files
authored
Merge pull request #32 from rabbitmq/rabbitmq-amqp-dotnet-client-31
Add strong naming to assembly
2 parents 1fa056d + fc07cf1 commit 955c730

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

.github/workflows/build-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: start-rabbitmq
2929
run: ${{ github.workspace }}/.ci/ubuntu/gha-setup.sh toxiproxy
3030
- name: Test
31-
run: dotnet test ${{ github.workspace }}/Build.csproj --no-restore --no-build --logger "console;verbosity=detailed" /p:AltCover=true
31+
run: dotnet test ${{ github.workspace }}/Build.csproj --no-restore --no-build --logger "console;verbosity=detailed" /p:AltCover=true /p:AltCoverStrongNameKey=${{github.workspace}}/rabbit.snk
3232
- name: Check for errors in RabbitMQ logs
3333
run: ${{ github.workspace}}/.ci/ubuntu/gha-log-check.sh
3434
- name: Maybe collect toxiproxy logs

Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<!-- vim: set ft=xml: -->
22
<Project>
3+
<PropertyGroup>
4+
<PublicKey>00240000048000009400000006020000002400005253413100040000010001005d8c30a2f8706bf952e03a51ced8b44b6e13c8a643db9ef030032b25431ec6e67b73c570beae14d63e6bd36f248c51800525e33a3fd7749bb877cfac0ad0b6544c9b385c007efb1b283327e6284396807be6300c13bbd14fed3d4c878dc33d1d832303daa9799a7f90e79aa2e5ded80143361e4849879b19a3886544780bb3bc</PublicKey>
5+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
6+
</PropertyGroup>
37
<ItemGroup>
48
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
59
</ItemGroup>

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build:
77
dotnet build $(CURDIR)/Build.csproj
88

99
test: build
10-
dotnet test -c Debug $(CURDIR)/Tests/Tests.csproj --no-build --logger:"console;verbosity=detailed" /p:AltCover=true
10+
dotnet test -c Debug $(CURDIR)/Tests/Tests.csproj --no-build --logger:"console;verbosity=detailed" /p:AltCover=true /p:AltCoverStrongNameKey=$(CURDIR)/rabbit.snk
1111

1212
rabbitmq-server-start-arm:
1313
./.ci/ubuntu/gha-setup.sh start pull arm

RabbitMQ.AMQP.Client/RabbitMQ.AMQP.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1616
<PackageOutputPath>../packages</PackageOutputPath>
1717
<PackageReadmeFile>README.md</PackageReadmeFile>
18+
<SignAssembly>True</SignAssembly>
1819
</PropertyGroup>
1920

2021
<ItemGroup>

Tests/Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<IsTestProject>true</IsTestProject>
77
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
88
<Nullable>enable</Nullable>
9+
<SignAssembly>True</SignAssembly>
910
</PropertyGroup>
1011

1112
<ItemGroup>

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Write-Host "Done building." -ForegroundColor "Green"
2222

2323
if ($RunTests) {
2424
Write-Host "Running tests: Build.csproj traversal (all frameworks)" -ForegroundColor "Magenta"
25-
dotnet test $build_csproj_file --no-build --logger 'console;verbosity=detailed' '/p:AltCover=true'
25+
dotnet test $build_csproj_file --no-build --logger 'console;verbosity=detailed' '/p:AltCover=true' "/p:AltCoverStrongNameKey=$PSScriptRoot/rabbit.snk"
2626
if ($LastExitCode -ne 0)
2727
{
2828
Write-Host "Error with tests, aborting build." -Foreground "Red"

rabbit.snk

596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)