mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-24 18:33:31 +08:00
Use Start-TypeGen to generate type catalog dynamically
This commit is contained in:
parent
36df477c01
commit
5e3150f429
@ -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
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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
|
Loading…
Reference in New Issue
Block a user