From faec94ffcf10d1df6e0b44f99271cdaff5141d16 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 7 Mar 2016 13:19:31 -0800 Subject: [PATCH] Add Microsoft.NETCore.Unsupported.Platform.API package This package contains the Windows runtime assemblies of packages that are not actually supported on Linux. The assemblies exist in the Linux runtime folder. While the code cannot be executed, this allows PowerShell to use the Windows specific types in its function calls without crashing (and allows compiling with these types in the first place). This is *not* an ideal work-around, but we are waiting on a better package from .NET that contains Linux runtime assemblies that throw `PlatformNotSupported` exceptions on use. --- src/Microsoft.PowerShell.Linux.Host/project.json | 1 + src/TypeCatalogGen/Runtime/project.json | 1 + src/windows-build | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Linux.Host/project.json b/src/Microsoft.PowerShell.Linux.Host/project.json index f8f544db6a..7c49543265 100644 --- a/src/Microsoft.PowerShell.Linux.Host/project.json +++ b/src/Microsoft.PowerShell.Linux.Host/project.json @@ -10,6 +10,7 @@ }, "dependencies": { + "Microsoft.NETCore.Unsupported.Platform.API": "1.0.0-rc3-00001", "Newtonsoft.Json": "8.0.2", "System.Xml.XDocument": "4.0.11-rc3-23907", "Microsoft.PowerShell.Commands.Management": "1.0.0-*", diff --git a/src/TypeCatalogGen/Runtime/project.json b/src/TypeCatalogGen/Runtime/project.json index 42d8a46c5c..b4170d5c70 100644 --- a/src/TypeCatalogGen/Runtime/project.json +++ b/src/TypeCatalogGen/Runtime/project.json @@ -3,6 +3,7 @@ "authors": [ "andschwa" ], "dependencies": { + "Microsoft.NETCore.Unsupported.Platform.API": "1.0.0-rc3-00001", "NETStandard.Library": "1.0.0-rc3-23907", "System.Runtime.Loader": "4.0.0-rc3-23907", "System.Security.SecureString": "1.0.0-*", diff --git a/src/windows-build b/src/windows-build index 64f2c7d5b3..1eef0f3829 160000 --- a/src/windows-build +++ b/src/windows-build @@ -1 +1 @@ -Subproject commit 64f2c7d5b3587d2fc94f683f8f7311686188dd97 +Subproject commit 1eef0f3829fd6c6f187c3b159b1220c5a23d3d7d