Skip to content

Commit

Permalink
Add auth to find missing notices
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 committed Apr 25, 2024
1 parent 525f60b commit f00bd7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/findMissingNotices.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

param(
[switch] $Fix,
[switch] $IsStable
[switch] $IsStable,
[switch] $InteractiveAuth
)

Import-Module dotnet.project.assets
Expand Down Expand Up @@ -218,9 +219,13 @@ function Get-CGRegistrations {
Write-Verbose "Getting registrations for $folder - $actualRuntime ..." -Verbose
Get-PSDrive -Name $folder -ErrorAction Ignore | Remove-PSDrive
Push-Location $PSScriptRoot\..\src\$folder
$extraParams = @()
if ($InteractiveAuth) {
$extraParams += "--interactive"
}
try {
Start-NativeExecution -VerboseOutputOnError -sb {
dotnet restore --runtime $actualRuntime "/property:SDKToUse=$sdkToUse"
dotnet restore --runtime $actualRuntime "/property:SDKToUse=$sdkToUse" $extraParams
}
$null = New-PADrive -Path $PSScriptRoot\..\src\$folder\obj\project.assets.json -Name $folder
try {
Expand Down

0 comments on commit f00bd7a

Please sign in to comment.