Use Start-TypeGen to generate type catalog dynamically

This commit is contained in:
Andrew Schwartzmeyer 2016-06-27 15:41:47 -07:00
parent 36df477c01
commit 5e3150f429
3 changed files with 0 additions and 2681 deletions

View file

@ -916,18 +916,12 @@ function Start-TypeGen
[CmdletBinding()]
param()
if (!$IsWindows)
{
throw "Start-TypeGen is not supported on non-windows. Use src/TypeCatalogGen/build.sh instead"
}
# Add .NET CLI tools to PATH
Find-Dotnet
Push-Location "$PSScriptRoot/src/TypeCatalogParser"
try
{
dotnet restore -v Warning
dotnet run
}
finally
@ -938,7 +932,6 @@ function Start-TypeGen
Push-Location "$PSScriptRoot/src/TypeCatalogGen"
try
{
dotnet restore -v Warning
dotnet run ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc
}
finally

View file

@ -1,7 +0,0 @@
pushd ../TypeCatalogParser
dotnet restore -v Warning
dotnet run
popd
dotnet restore -v Warning
dotnet run ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc