You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[git: main]
aaronla@aaronla-rabbit:repro_sdk$ dotnet restore --configfile custom_nuget.config
[git: main]
aaronla@aaronla-rabbit:repro_sdk$ echo %ERRORLEVEL%
0
[git: main]
aaronla@aaronla-rabbit:repro_sdk$ dotnet build --no-restore
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
c:\repos\aaronla-ms\bug-repros\repro_sdk\my.csproj : error MSB4236: The SDK 'Microsoft.Build.Traversal' specified could not be found.
Build FAILED.
c:\repos\aaronla-ms\bug-repros\repro_sdk\my.csproj : error MSB4236: The SDK 'Microsoft.Build.Traversal' specified could not be found.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.12
Expected: restore succeeds, and build succeeds
Actual: restore reports success, but did not restore anything. Consequently, build fails.
Verbose Logs
The text was updated successfully, but these errors were encountered:
Issue copied from dotnet/sdk#17319 per request of @erdembayar
Details about Problem
When performing
dotnet restore
using the --configfile argument, the nuget Sdk resolver does not honor the --configfile setting.This results in two problems:
This issue is tracking the first problem. (second problem tracked by separate issue, dotnet/msbuild#6281)
NuGet product used (NuGet.exe | Visual Studio | MSBuild.exe | dotnet.exe):
Product version:
Worked before? If so, with which NuGet version:
Repro steps and/or sample project
Expected: restore succeeds, and build succeeds
Actual: restore reports success, but did not restore anything. Consequently, build fails.
Verbose Logs
The text was updated successfully, but these errors were encountered: