Skip to content

Commit

Permalink
Set the version specifically for ILMerging
Browse files Browse the repository at this point in the history
If you don't set it specifically, ILMerge will produce a different
version of the IPackage value.
  • Loading branch information
ferventcoder committed Jan 20, 2016
1 parent 8acde68 commit 2a0aa36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Packages/Constants.cs
Expand Up @@ -75,6 +75,7 @@ public static class Constants
public static readonly ICollection<string> AssemblyReferencesExtensions
= new ReadOnlyCollection<string>(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;
}
}

0 comments on commit 2a0aa36

Please sign in to comment.