mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Use Start-TypeGen to generate type catalog dynamically
This commit is contained in:
1 parent
36df477c01
commit
5e3150f429
3 files changed
-2681
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user