diff --git a/build.psm1 b/build.psm1 index c170791837..70eb5d9c5f 100644 --- a/build.psm1 +++ b/build.psm1 @@ -1085,7 +1085,7 @@ function Start-TypeGen Push-Location "$PSScriptRoot/src/TypeCatalogParser" try { - dotnet run ../powershell-sdk + dotnet run } finally { diff --git a/src/TypeCatalogParser/Main.cs b/src/TypeCatalogParser/Main.cs index 15cf08c568..8b019c120a 100644 --- a/src/TypeCatalogParser/Main.cs +++ b/src/TypeCatalogParser/Main.cs @@ -13,11 +13,6 @@ namespace TypeCatalogParser { public static void Main(string[] args) { - if (args.Length != 1) - { - throw new ArgumentException("Usage: ./TypeCatalogParser ../powershell-sdk"); - } - // These are packages that are not part of .NET Core and must be excluded string[] excludedPackages = { "Microsoft.Management.Infrastructure", @@ -30,7 +25,7 @@ namespace TypeCatalogParser var outputPath = "../TypeCatalogGen/powershell.inc"; // Get a context for our top level project - var context = ProjectContext.Create(args[0], NuGetFramework.Parse("netcoreapp1.0")); + var context = ProjectContext.Create("../Microsoft.PowerShell.SDK", NuGetFramework.Parse("netstandard1.6")); System.IO.File.WriteAllLines(outputPath, // Get the target for the current runtime