Skip to content

replace nuget-vefirication that downloads nuget and package with dotnet nuget verify #16247

@nohwnd

Description

@nohwnd
  • This issue is blocking
  • This issue is causing unreasonable pain

https://github.com/dotnet/arcade/blame/00d4b9b955b4b67d20221a490df91783ce2b7b0d/eng/common/post-build/nuget-verification.ps1#L40

This whole script (except for the checking of exit code) seems to be easily replaced by call to dotnet nuget verify.

Except that this is a net10 thing global.json that is set by arcade applies, and the Nuget Verify step does not have net10 available.

From build:

The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'nuget' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 10.0.100-preview.7.25372.107
global.json file: D:\a\_work\1\s\global.json

Installed SDKs:

Install the [10.0.100-preview.7.25372.107] .NET SDK or update [D:\a\_work\1\s\global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
9.0.304 [C:\Program Files\dotnet\sdk]
at <ScriptBlock>, D:\a\_work\1\s\eng\common\post-build\nuget-verification.ps1: line 7
at <ScriptBlock>, D:\a\_work\1\s\eng\common\post-build\nuget-validation.ps1: line 16
at <ScriptBlock>, D:\a\_work\_temp\5b8f4b8b-dfca-4c5e-a29c-e04b4f5cf039.ps1: line 4
at <ScriptBlock>, <No file>: line 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions