mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add Start-TypeGen
Update Microsoft.PowerShell.CoreCLR.AssemblyLoadContext\project.json Include Crypto package for new source code
This commit is contained in:
1 parent
67ef887900
commit
b374e2fd06
3 files changed
+44
-2
No files matched your search
+41
@@ -27,6 +27,7 @@ function Start-PSBuild {
|
||||
[switch]$Restore,
|
||||
[string]$Output,
|
||||
[switch]$ResGen,
|
||||
[switch]$TypeGen,
|
||||
|
||||
[Parameter(ParameterSetName='CoreCLR')]
|
||||
[switch]$Publish,
|
||||
@@ -194,6 +195,13 @@ function Start-PSBuild {
|
||||
}
|
||||
}
|
||||
|
||||
# handle TypeGen
|
||||
if ($TypeGen -or -not (Test-Path "$PSScriptRoot/src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs"))
|
||||
{
|
||||
log "Run TypeGen (generating CorePsTypeCatalog.cs)"
|
||||
Start-TypeGen
|
||||
}
|
||||
|
||||
try {
|
||||
# Relative paths do not work well if cwd is not changed to project
|
||||
Push-Location $Options.Top
|
||||
@@ -867,6 +875,39 @@ function Send-GitDiffToSd {
|
||||
}
|
||||
}
|
||||
|
||||
function Start-TypeGen
|
||||
{
|
||||
[CmdletBinding()]
|
||||
param()
|
||||
|
||||
if (!$IsWindows)
|
||||
{
|
||||
throw "Start-TypeGen is not supported on non-windows. Use src/TypeCatalogGen/build.sh instead"
|
||||
}
|
||||
|
||||
Push-Location "$PSScriptRoot/src/TypeCatalogParser"
|
||||
try
|
||||
{
|
||||
dotnet restore -v Warning
|
||||
dotnet run
|
||||
}
|
||||
finally
|
||||
{
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Push-Location "$PSScriptRoot/src/TypeCatalogGen"
|
||||
try
|
||||
{
|
||||
dotnet restore -v Warning
|
||||
dotnet run ../Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/CorePsTypeCatalog.cs powershell.inc
|
||||
}
|
||||
finally
|
||||
{
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
function Start-ResGen
|
||||
{
|
||||
[CmdletBinding()]
|
||||
|
||||
Reference in new issue
Block a user