Fix TypeGen with the new layout

This commit is contained in:
Sergei Vorobev 2016-07-26 16:59:45 -07:00
parent e97af44674
commit 4450005a52
2 changed files with 2 additions and 7 deletions

View File

@ -1085,7 +1085,7 @@ function Start-TypeGen
Push-Location "$PSScriptRoot/src/TypeCatalogParser"
try
{
dotnet run ../powershell-sdk
dotnet run
}
finally
{

View File

@ -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