mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
committed by
Andrew Schwartzmeyer
parent
80b15f64e2
commit
bf1a2c8521
@@ -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[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user