Skip to content

Commit

Permalink
Sign assembly with a strong name
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucansky committed Jun 19, 2020
1 parent 2142733 commit 239eaab
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Camunda.Api.Client.Tests/Camunda.Api.Client.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<TargetFramework>netcoreapp2.0</TargetFramework>

<IsPackable>false</IsPackable>

<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\Key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand Down
18 changes: 14 additions & 4 deletions Camunda.Api.Client/Camunda.Api.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.5.1-prerelease02</Version>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<VersionSuffix></VersionSuffix>
<VersionPrefix>2.5.1</VersionPrefix>
<FileVersion>2.5.1.0</FileVersion>
<Product>Camunda REST API Client</Product>
<Title>Camunda REST API Client</Title>
<Authors>Jan Lucansky</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/jlucansky/Camunda.Api.Client</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<Description>Camunda REST API Client for .NET platform</Description>
<PackageTags>camunda rest refit bpmn bpm</PackageTags>
<PackageReleaseNotes></PackageReleaseNotes>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<RepositoryType></RepositoryType>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<NoWarn>1701;1702;1705;1591</NoWarn>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<!-- Don't increment AssemblyVersion -->
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\Key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -31,4 +35,10 @@
<None Include="icon.png" Pack="true" PackagePath="" />
</ItemGroup>


<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<!-- wait for manually signing to complete -->
<Exec Condition="$(SIGNTOOL_WAIT) != ''" Command="start cmd /c pause" />
</Target>

</Project>
7 changes: 6 additions & 1 deletion Camunda.Api.Client/DateTimeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
using System.Globalization;
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("Camunda.Api.Client.Tests")]
[assembly: InternalsVisibleTo("Camunda.Api.Client.Tests,PublicKey=" +
"00240000048000009400000006020000002400005253413100040000010001004196a3758b909b" +
"46774069391580d90f2078e831d76f42a00c3d584321fd9b394b12d3a46eab643bc339f526d1d9" +
"5f7450cfd7a0a0316ce2eea145b9d9013f6b677aac1333d94007c79c33e2804af6a749c732ac45" +
"90f17f078d33445a25c45598f744f0774d2c3d82e2a8b0309203be7e3d0b719f7825d4ded4577b" +
"435db7ae")]
namespace Camunda.Api.Client
{
internal static class DateTimeExtensions
Expand Down
Binary file added Key.snk
Binary file not shown.

0 comments on commit 239eaab

Please sign in to comment.