Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[One .NET] remove Microsoft.NETCore.App.Host.linux-* #7237

Closed

Conversation

jonathanpeppers
Copy link
Member

Backport of: #7043

Backporting this to help dogfooding MAUI.

Folks are hitting errors such as:

Unable to find package Microsoft.NETCore.App.Host.linux-arm with version (= 6.0.8)

Original PR Description

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.

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.
@jonathanpeppers
Copy link
Member Author

We probably won't need this because of:

I'll keep this for a few days and close if we don't need it.

@jonathanpeppers jonathanpeppers marked this pull request as draft August 5, 2022 19:17
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant