Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Fixed duplicate assembly registration on mono
Browse files Browse the repository at this point in the history
- Overwrite assemblies registered by name when finding reference assemblies.
- Also set the path of the framework directory

Fixed #252
  • Loading branch information
davidfowl committed May 27, 2014
1 parent df73f59 commit 8d1f1df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private void PopulateCache()
var frameworkName = new FrameworkName(VersionUtility.DefaultTargetFramework.Identifier, new Version(version));

var frameworkInfo = new FrameworkInformation();
frameworkInfo.Path = targetFrameworkPath;

var assemblies = new List<Tuple<string, string>>();

Expand All @@ -109,7 +110,7 @@ private void PopulateCache()

foreach (var pair in assemblies)
{
frameworkInfo.Assemblies.Add(pair.Item1, pair.Item2);
frameworkInfo.Assemblies[pair.Item1] = pair.Item2;
}

_cache[frameworkName] = frameworkInfo;
Expand Down

0 comments on commit 8d1f1df

Please sign in to comment.