Make Add-Type work without a flat folder structure

- Get rid of the assumption that all framework assemlbies live in
  the same place
- Enable build scenario (assemlbies are referenced directly from unpacked
  nuget packages)
- Fix #766
- Re-enable Add-Type tests
This commit is contained in:
Sergei Vorobev
2016-04-08 21:41:30 -07:00
committed by Andrew Schwartzmeyer
parent 80b15f64e2
commit bf1a2c8521
2 changed files with 3 additions and 2 deletions
@@ -1059,8 +1059,9 @@ namespace Microsoft.PowerShell.Commands
private static PortableExecutableReference ObjectImplementationAssemblyReference =
MetadataReference.CreateFromFile(typeof(object).GetTypeInfo().Assembly.Location);
// This assembly should be System.Runtime.dll
private static PortableExecutableReference ObjectDeclaredAssemblyReference =
MetadataReference.CreateFromFile(System.IO.Path.Combine(FrameworkFolder, "System.Runtime.dll"));
MetadataReference.CreateFromFile(ClrFacade.GetAssemblies(typeof(object).FullName).First().Location);
private static MetadataReference[] defaultAssemblies = new MetadataReference[]
{