Merged PR 5379: Improve debugging of nuget package generation and add type to filtering
This commit is contained in:
parent
1e31e707c8
commit
eb84c3d928
|
@ -1858,16 +1858,17 @@ function New-ReferenceAssembly
|
|||
#region Cleanup SMA.cs
|
||||
|
||||
$patternsToRemove = @(
|
||||
'[System.Management.Automation.ArgumentToEncodingTransformationAttribute]',
|
||||
'typeof(System.Security.AccessControl.FileSecurity)',
|
||||
'[System.Management.Automation.ArgumentTypeConverterAttribute',
|
||||
'[System.Runtime.CompilerServices.IteratorStateMachineAttribute',
|
||||
'[Microsoft.PowerShell.Commands.ArgumentToModuleTransformationAttribute]',
|
||||
'[Microsoft.PowerShell.Commands.SetStrictModeCommand.ArgumentToVersionTransformationAttribute]',
|
||||
'[Microsoft.PowerShell.Commands.SetStrictModeCommand.ValidateVersionAttribute]',
|
||||
'[System.Management.Automation.OutputTypeAttribute(typeof(System.Management.Automation.PSRemotingJob))]',
|
||||
'typeof(System.Management.Automation.LanguagePrimitives.EnumMultipleTypeConverter)',
|
||||
'[System.Management.Automation.ArgumentToEncodingTransformationAttribute]'
|
||||
'typeof(System.Security.AccessControl.FileSecurity)'
|
||||
'[System.Management.Automation.ArgumentTypeConverterAttribute'
|
||||
'[System.Runtime.CompilerServices.IteratorStateMachineAttribute'
|
||||
'[Microsoft.PowerShell.Commands.ArgumentToModuleTransformationAttribute]'
|
||||
'[Microsoft.PowerShell.Commands.SetStrictModeCommand.ArgumentToVersionTransformationAttribute]'
|
||||
'[Microsoft.PowerShell.Commands.SetStrictModeCommand.ValidateVersionAttribute]'
|
||||
'[System.Management.Automation.OutputTypeAttribute(typeof(System.Management.Automation.PSRemotingJob))]'
|
||||
'typeof(System.Management.Automation.LanguagePrimitives.EnumMultipleTypeConverter)'
|
||||
'[System.Management.Automation.Internal.CommonParameters.ValidateVariableName]'
|
||||
'[System.Management.Automation.ArgumentEncodingCompletionsAttribute]'
|
||||
)
|
||||
|
||||
$reader = [System.IO.File]::OpenText($smaCs)
|
||||
|
@ -1911,9 +1912,12 @@ function New-ReferenceAssembly
|
|||
|
||||
$csProj | Out-File -FilePath "$smaProjectFolder/System.Management.Automation.csproj" -Force
|
||||
|
||||
Write-Host "##vso[artifact.upload containerfolder=artifact;artifactname=artifact]$smaProjectFolder/System.Management.Automation.csproj"
|
||||
Write-Host "##vso[artifact.upload containerfolder=artifact;artifactname=artifact]$smaCs"
|
||||
|
||||
$packagingStrings.NugetConfigFile | Out-File -FilePath "$genAPIFolder/Nuget.config" -Force
|
||||
|
||||
Start-NativeExecution { dotnet build -c Release } > $null
|
||||
Start-NativeExecution { dotnet build -c Release }
|
||||
|
||||
$refBinPath = Join-Path $smaProjectFolder 'bin/Release/netstandard2.0/System.Management.Automation.dll'
|
||||
|
||||
|
|
Loading…
Reference in a new issue