dotnet / format

Home for the dotnet-format command
MIT License
1.94k stars 172 forks source link

[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] #1943

Closed vdanche closed 1 year ago

vdanche commented 1 year ago

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)

  1. Checkout the dotnet-format repo. git clone https://github.com/dotnet/format.git

  2. Update the gobal.json by removing the "sdk" configuration before image After: image

  3. 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

marcpopMSFT commented 1 year ago

Did you include the private feed when trying this out?

richaverma1 commented 1 year ago

@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?

marcpopMSFT commented 1 year ago

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?

marcpopMSFT commented 1 year ago

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?

JoeRobich commented 1 year ago

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

vdanche commented 1 year ago

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