From 4450005a52e7c6595a4d54e02ec5ac00882e63d3 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 26 Jul 2016 16:59:45 -0700 Subject: [PATCH] Fix TypeGen with the new layout --- build.psm1 | 2 +- src/TypeCatalogParser/Main.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) 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