File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments