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