dotnet / format

Home for the dotnet-format command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NETSDKE2E]With net8 rc1 sdk installed, Restore .NET format project failed with error NU1102:Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 8.0.0-rc.1.23419.4) [C:\Users\v-danche\format\format.sln]

vdanche opened this issue · comments

1.Install NET8 RC1 SDK(8.0.100-rc.1.23421.2(runtime- 8.0.0-rc.1.23419.4)) from Artifacts: Pipelines - Run 20230821.1-8.0.100-rc.1.23421.2-189171 artifacts (azure.com)
2. Checkout the dotnet-format repo. git clone https://github.com/dotnet/format.git
3. Update the gobal.json by removing the "sdk" configuration
before
image
After:
image

  1. Run Restore.cmd

Expected Result:
Restore project successfully.

Actual Result:
Restore failed with error NU1102
image

Note:
Correct Feed has been added into Nuget.config file.
https://pkgs.dev.azure.com/dnceng/internal/_packaging/8.0.100-rc.1.23421.2-shipping/nuget/v3/index.json

dotnet --info:
image

Did you include the private feed when trying this out?

@marcpopMSFT the feed provided with the coherent build was added - https://pkgs.dev.azure.com/dnceng/internal/_packaging/8.0.100-rc.1.23421.2-shipping/nuget/v3/index.json. Did you mean some other feed too?

Ahh missed that the first time. I see it out. That package is in that feed so I'm not sure why the restore command isn't finding it:https://dev.azure.com/dnceng/internal/_artifacts/feed/8.0.100-rc.1.23421.2-shipping/NuGet/Microsoft.NETCore.App.Runtime.win-x64/overview/8.0.0-rc.1.23419.4

Is the feed not configured correctly? Is something broken with authenticated feeds? Is something broken in the restore.cmd?

I quickly tested self-contained build with the private feed in a sandbox and it worked so auth feeds are working. Maybe something with restore.cmd?

Was the nuget package mapping updated to reference the new feed?

@JoeRobich @marcpopMSFT @richaverma1 Today we checked with using the same SDK and feed, this issue not repro now.
image