Skip to content

Commit 4450005

Browse files
author
Sergei Vorobev
committed
Fix TypeGen with the new layout
1 parent e97af44 commit 4450005

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

build.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ function Start-TypeGen
10851085
Push-Location "$PSScriptRoot/src/TypeCatalogParser"
10861086
try
10871087
{
1088-
dotnet run ../powershell-sdk
1088+
dotnet run
10891089
}
10901090
finally
10911091
{

src/TypeCatalogParser/Main.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ public class Program
1313
{
1414
public static void Main(string[] args)
1515
{
16-
if (args.Length != 1)
17-
{
18-
throw new ArgumentException("Usage: ./TypeCatalogParser ../powershell-sdk");
19-
}
20-
2116
// These are packages that are not part of .NET Core and must be excluded
2217
string[] excludedPackages = {
2318
"Microsoft.Management.Infrastructure",
@@ -30,7 +25,7 @@ public static void Main(string[] args)
3025
var outputPath = "../TypeCatalogGen/powershell.inc";
3126

3227
// Get a context for our top level project
33-
var context = ProjectContext.Create(args[0], NuGetFramework.Parse("netcoreapp1.0"));
28+
var context = ProjectContext.Create("../Microsoft.PowerShell.SDK", NuGetFramework.Parse("netstandard1.6"));
3429

3530
System.IO.File.WriteAllLines(outputPath,
3631
// Get the target for the current runtime

0 commit comments

Comments
 (0)