Skip to content

Commit

Permalink
(#25) Add strongname script and key
Browse files Browse the repository at this point in the history
These were taken from the chocolatey/choco repository where this work
was previously done, and updated slightly to incorporate slightly
different folder structure.
  • Loading branch information
gep13 committed May 5, 2021
1 parent 6556972 commit 7e8d686
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Binary file added chocolatey.snk
Binary file not shown.
16 changes: 16 additions & 0 deletions nuget/Chocolatey-NuGet.Core/strongname.cmd
@@ -0,0 +1,16 @@
@echo off
SET DIR=%~d0%~p0%

::%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
::no need to ildasm/al

echo Make sure you have webtransform here for the merge. Continue?
pause

mkdir %DIR%\output

%DIR%..\ILMerge\ILMerge.exe lib\net4\NuGet.Core.dll /keyfile:%DIR%..\..\chocolatey.snk /out:%DIR%\output\NuGet.Core.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /log:%DIR%ILMerge.DELETE.log /allowDup
REM %DIR%..\ILMerge\ILMerge.exe NuGet.Core.dll /keyfile:%DIR%..\..\chocolatey.snk /out:%DIR%NuGet.Core.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /log:%DIR%ILMerge.DELETE.log /ndebug /allowDup

echo Copy the files from the output directory up to this directory and delete everything but this file, NuGet.Core.dll and NuGet.Core.pdb.
pause

0 comments on commit 7e8d686

Please sign in to comment.