From 2a0aa362b782f9e7fd9c044c97155780a10960f5 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 11 Jun 2015 12:17:23 -0500 Subject: [PATCH] Set the version specifically for ILMerging If you don't set it specifically, ILMerge will produce a different version of the IPackage value. --- src/Core/Packages/Constants.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Packages/Constants.cs b/src/Core/Packages/Constants.cs index acd6503d0..ee2367b09 100644 --- a/src/Core/Packages/Constants.cs +++ b/src/Core/Packages/Constants.cs @@ -75,6 +75,7 @@ public static class Constants public static readonly ICollection AssemblyReferencesExtensions = new ReadOnlyCollection(new string[] { ".dll", ".exe", ".winmd" }); - public static readonly Version NuGetVersion = typeof(IPackage).Assembly.GetName().Version; + // this overcomes ILMerge issues - https://github.com/chocolatey/choco/issues/194 + public static readonly Version NuGetVersion = new Version(2,8,2,0); // typeof(IPackage).Assembly.GetName().Version; } } \ No newline at end of file