Fix TypeGen with the new layout
This commit is contained in:
parent
e97af44674
commit
4450005a52
@ -1085,7 +1085,7 @@ function Start-TypeGen
|
||||
Push-Location "$PSScriptRoot/src/TypeCatalogParser"
|
||||
try
|
||||
{
|
||||
dotnet run ../powershell-sdk
|
||||
dotnet run
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user