[Bug]: [Cross-platform Sign Verify] A redundant “error: Value cannot be null” shows after running command “dotnet add package” on Windows #12039
Labels
Found:ManualTests
Resolution:Duplicate
This issue appears to be a Duplicate of another issue
Type:Bug
NuGet Product Used
dotnet.exe
Product Version
.NET SDK Version: 7.0.100-rc.2.22417.1
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Details about Problem
.NET SDK Version: 7.0.100-rc.2.22417.1
Detailed repro steps
On Windows:
.\dotnet\dotnet run --project .\Entropy\MakeTestCert\MakeTestCert.csproj --framework net7.0 -- -nb "<NotBefore>" -na "<NotAfter>"
On Windows:
.\dotnet\dotnet run --project .\Entropy\TrustTestCert\TrustTestCert.csproj --framework net7.0 -- add -c <CertificateFilePath>
On Windows:
.\dotnet\dotnet nuget sign .\<PackageId>\bin\Debug\<PackageId>.1.0.0.nupkg --overwrite --certificate-path <PfxFilePath>
warn : NU3002: The '--timestamper' option was not provided. The signed package will not be timestamped. To learn more about this option, please visit https://docs.microsoft.com/dotnet/core/tools
On Windows:
mkdir .\test && pushd .\test && ..\dotnet\dotnet new console && copy ..\NuGet.config.template .\NuGet.config
On Windows:
rd /s /q .\obj && ..\dotnet\dotnet nuget locals --clear all
On Windows:
..\dotnet\dotnet add package <PackageId> --version 1.0.0
Expected
No redundant “error: Value cannot be null” shows.
Actual
A redundant “error: Value cannot be null” shows after running command “dotnet add package” on Windows as below.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: