Skip to content

Commit

Permalink
Load Assembly by bytes - fixes locking introduced in fsprojects#1049
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Sep 8, 2015
1 parent 8b22f93 commit 7906b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### 1.38.0 - 08.09.2015
#### 1.39.0 - 08.09.2015
* New Bootstrapper with better handling of Paket prereleases

#### 1.37.0 - 07.09.2015
Expand Down
3 changes: 2 additions & 1 deletion src/Paket.Bootstrapper/BootstrapperHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ internal static string GetLocalFileVersion(string target)

try
{
var attr = Assembly.LoadFile(target).GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false).Cast<AssemblyInformationalVersionAttribute>().FirstOrDefault();
var bytes = File.ReadAllBytes(target);
var attr = Assembly.Load(bytes).GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false).Cast<AssemblyInformationalVersionAttribute>().FirstOrDefault();
if (attr == null) return "";
return attr.InformationalVersion;
}
Expand Down

0 comments on commit 7906b73

Please sign in to comment.