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-* #7043

Merged

Conversation

jonathanpeppers
Copy link
Member

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 jonathanpeppers marked this pull request as ready for review May 27, 2022 19:12
@jonathanpeppers jonathanpeppers requested a review from jonpryor May 27, 2022 19:12
@jonpryor jonpryor merged commit 52b30e3 into dotnet:main May 27, 2022
@jonathanpeppers jonathanpeppers deleted the Microsoft.NETCore.App.Host.linux branch May 27, 2022 20:08
simonrozsival pushed a commit to simonrozsival/xamarin-android that referenced this pull request May 31, 2022
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 added a commit to jonathanpeppers/xamarin-android that referenced this pull request Aug 5, 2022
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.
@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.

2 participants