Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] remove Microsoft.NETCore.App.Host.linux-* (dotnet#7043)
Context: 3f052b5 Context: dotnet/sdk#25679 If you use our .NET 7 workload, and do: dotnet new android dotnet restore It fails with: C:\src\foo\foo.csproj error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-arm with version (= 7.0.0-preview.5.22271.4) - Found 88 version(s) in nuget.org [ Nearest version: 7.0.0-preview.4.22229.4 ] - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\src\foo\foo.csproj] C:\src\foo\foo.csproj error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-arm64 with version (= 7.0.0-preview.5.22271.4) - Found 88 version(s) in nuget.org [ Nearest version: 7.0.0-preview.4.22229.4 ] - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\src\foo\foo.csproj] C:\src\foo\foo.csproj error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 7.0.0-preview.5.22271.4) - Found 88 version(s) in nuget.org [ Nearest version: 7.0.0-preview.4.22229.4 ] - Found 0 version(s) in Microsoft Visual Studio Offline Packages [C:\src\foo\foo.csproj] You have to add a `nuget.config` to solve the issue: <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" /> </packageSources> </configuration> In 3f052b5, we had a workaround for early .NET 6 previews to prevent this issue. At some point the problem *seemed* fixed because the dotnet/runtime we were using was always on NuGet.org. I tested a .NET 6 Android app with the 6.0.300 SDK, and it always downloads these packages. For now, let's put 3f052b5 back in. This should also allow us to remove the `dotnet7` feed in our MSBuild tests.
- Loading branch information