[build] pass $(RestoreConfigFile) to Workloads.csproj#13180
[build] pass $(RestoreConfigFile) to Workloads.csproj#13180jonathanpeppers wants to merge 1 commit intodotnet:mainfrom
Conversation
On dotnet/maui/main, if I do:
dotnet cake
It fails spectacularly:
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
- Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
- Found 0 version(s) in C:\Program Files\dotnet\library-packs
- Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
- Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
- Found 0 version(s) in dotnet-eng
- Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
- Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
- Found 0 version(s) in C:\Program Files\dotnet\library-packs
- Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
- Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
- Found 0 version(s) in dotnet-eng
- Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
- Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
- Found 0 version(s) in C:\Program Files\dotnet\library-packs
- Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
- Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
- Found 0 version(s) in dotnet-eng
- Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
- Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
- Found 0 version(s) in C:\Program Files\dotnet\library-packs
- Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
- Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
- Found 0 version(s) in dotnet-eng
- Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.Android.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.MacCatalyst.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.iOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.tvOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.macOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
I set `$(RestoreConfigFile)` to the `NuGet.config` file to solve this
issue.
I'm unsure how things are generally working without this? Or maybe
this is a recent development from 2dcc148?
|
Isn't this PR also fixing #12762 by any chance? |
|
this is strange, how would CI work if it could install .net.. aall steps install .net first . Any idea @mattleibow ? |
|
But should the Nuget.config on the root be catch by default? |
@rmarinho I think it's something about other feeds on my machine? Broken one (main): Working one (this PR): |
|
I see the maui config is in the list, so this seems suspicious. What version of the SDK do you have installed? The only reason why this would stop is something else is horribly wrong - this is just normal .NET rules... |
|
I have the VS preview channel, so it is |
|
Maybe the 200 SDK is broken then? I recall people having issues in the new 200 world... |
|
|
This is not needed if we have: #13201 (I'm really close!) The only thing I can figure, is I had disabled internal feeds in my machine-wide NuGet.config. They were unchecked in Visual Studio's options dialog. This feels like some bug in NuGet or MSBuild/.NET SDK. |

On dotnet/maui/main, if I do:
It fails spectacularly:
I set
$(RestoreConfigFile)to theNuGet.configfile to solve this issue.I'm unsure how things are generally working without this?
Or maybe this is a recent development from 2dcc148?