Skip to content

Commit

Permalink
generate strong name key and sign the assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Sep 20, 2023
1 parent 7315fb1 commit b5ad224
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
<WarningsNotAsErrors>$(WarningsNotAsErrors);IDE0053;IDE0060</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests'))">
<PropertyGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests')) AND '$(Configuration)' == 'Release' AND !$(MSBuildProjectName.StartsWith('HealthChecks.UI')) AND !$(MSBuildProjectName.Contains('Sample'))">
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)build/strongNameKey.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>

<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests')) AND '$(SignAssembly)' != 'true' ">
<InternalsVisibleTo Include="$(MSBuildProjectName).Tests" />
</ItemGroup>

Expand Down
Binary file added build/strongNameKey.snk
Binary file not shown.
1 change: 1 addition & 0 deletions src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);ArangoDb</PackageTags>
<Description>HealthChecks.ArangoDb is the health check package for ArangoDb.</Description>
<VersionPrefix>$(HealthCheckArangoDb)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);EventStore;gRPC</PackageTags>
<Description>HealthChecks.EventStore.gRPC is the health check package for EventStore, using the gRPC client.</Description>
<VersionPrefix>$(HealthCheckEventStoregRPC)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.EventStore/HealthChecks.EventStore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);EventStore</PackageTags>
<Description>HealthChecks.EventStore is the health check package for EventStore, using the TCP Client.</Description>
<VersionPrefix>$(HealthCheckEventStore)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);Hangfire</PackageTags>
<Description>HealthChecks.Hangfire is the health check package for Hangfire.</Description>
<VersionPrefix>$(HealthCheckHangfire)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);Kubernetes;k8s;Cluster</PackageTags>
<Description>HealthChecks.HealthChecks is the health check package for Kubernetes clusters.</Description>
<VersionPrefix>$(HealthCheckKubernetes)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);MongoDb</PackageTags>
<Description>HealthChecks.MongoDb is the health check package for MongoDb.</Description>
<VersionPrefix>$(HealthCheckMongoDB)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.Network/HealthChecks.Network.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);Network;Sftp;Ftp;Tcp;DNS</PackageTags>
<Description>HealthChecks.Network is the health check package for network services.</Description>
<VersionPrefix>$(HealthCheckNetwork)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Description>HealthChecks.OpenIdConnectServer is the health check package for OpenIdConnect servers</Description>
<VersionPrefix>$(HealthCheckOpenIdConnectServer)</VersionPrefix>
<RootNamespace>HealthChecks.IdSvr</RootNamespace> <!--For backward naming compatibility-->
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);Publisher;Application Insights</PackageTags>
<Description>HealthChecks.Publisher.ApplicationInsights is the health check publisher for Application Insights.</Description>
<VersionPrefix>$(HealthCheckPublisherAppplicationInsights)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.Solr/HealthChecks.Solr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageTags>$(PackageTags);solr</PackageTags>
<Description>HealthChecks.solr is the health check package for solr.</Description>
<VersionPrefix>$(HealthCheckSolr)</VersionPrefix>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<DockerfileContext>..\..</DockerfileContext>
<VersionPrefix>$(HealthChecksUIK8sOperator)</VersionPrefix>
<NoWarn>$(NoWarn);RCS1090</NoWarn>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/HealthChecks.UI/HealthChecks.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<VersionPrefix>$(HealthCheckUI)</VersionPrefix>
<TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
<WarningsNotAsErrors>$(WarningsNotAsErrors);RCS1090</WarningsNotAsErrors>
<SignAssembly>false</SignAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b5ad224

Please sign in to comment.