Skip to content

Commit

Permalink
Strong name the Chill DLL (#81)
Browse files Browse the repository at this point in the history
* Updated Chill.csproj to strong name the build output. Added strongname.snk.

* Updated Build.cs to include strong-naming in the call to ILRepack to merge Autofac into Chill.dll.
  • Loading branch information
logiclrd authored Dec 4, 2020
1 parent 5cd1bdd commit 08797b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/Chill/Chill.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.1;netstandard2.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>strongname.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down
Binary file added Src/Chill/strongname.snk
Binary file not shown.
2 changes: 2 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ public static int Main()
.SetFramework("netstandard2.0"));
ILRepack($"/out:{ArtifactsDirectory}\\netstandard1.1\\Chill.dll /xmldocs " +
$"/keyfile:{SourceDirectory}\\Chill\\strongname.snk " +
$"{SourceDirectory}\\Chill\\bin/{Configuration}\\netstandard1.1\\publish\\Chill.dll " +
$"{SourceDirectory}\\Chill\\bin/{Configuration}\\netstandard1.1\\publish\\Autofac.dll ");
ILRepack($"/out:{ArtifactsDirectory}\\netstandard2.0\\Chill.dll /xmldocs " +
$"/keyfile:{SourceDirectory}\\Chill\\strongname.snk " +
$"{SourceDirectory}\\Chill\\bin/{Configuration}\\netstandard2.0\\publish\\Chill.dll " +
$"{SourceDirectory}\\Chill\\bin/{Configuration}\\netstandard2.0\\publish\\Autofac.dll ");
Expand Down

0 comments on commit 08797b5

Please sign in to comment.