Skip to content

Commit

Permalink
Merge pull request #1205 from matthid/fix_1199
Browse files Browse the repository at this point in the history
accept the cached assembly when the public token of the given assembly is null.
  • Loading branch information
forki committed Apr 7, 2016
2 parents a362ff2 + 8dcfa9a commit 66ca140
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/FakeLib/FSIHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,19 @@ let private getCacheInfoFromScript printDetails fsiOptions scriptPath =
if printDetails then tracefn "Redirect assembly load to known assembly: %s" ev.Name
a
| _ ->
let token = name.GetPublicKeyToken()
match loadedAssemblies
|> Seq.map snd
|> Seq.tryFind (fun asem ->
let n = asem.GetName()
n.Name = name.Name &&
n.GetPublicKeyToken() = name.GetPublicKeyToken()) with
(isNull token || // When null accept what we have.
n.GetPublicKeyToken() = token)) with
| Some (asem) ->
traceFAKE "Redirect assembly from '%s' to '%s'" ev.Name asem.FullName
asem
| _ ->
if printDetails then traceFAKE "Could not resolve '%s'" ev.Name
null))
assemVersionValidCount = Seq.length cacheConfig.Value.Assemblies
else
Expand Down

0 comments on commit 66ca140

Please sign in to comment.