-
Notifications
You must be signed in to change notification settings - Fork 511
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
[net7-rc2] Unable to find package Microsoft.NETCore.App.Runtime.linux-bionic-x64 with version (= 6.0.10)
#16401
Comments
|
Heh ;) Yes it's Uno's sample app build logs. As an update, if I remove |
@dalexsoto If this issue is tagged future, does this mean it won't be fixed for .NET 7.0.100? If that's the case, this means we'll need to remove all the macos targets frameworks everywhere? |
@jeromelaban I believe this issue will "fix" itself once the package it's complaining about is released. That doesn't mean there's an issue here (it's certainly weird - and kind of amusing... - that it's complaining about a linux package when building for android, but only when macOS is among the target frameworks). |
Minimal repro project: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-macos</TargetFrameworks>
<OutputType>Exe</OutputType>
</PropertyGroup>
</Project> Fails like this:
Note that specifying the RuntimeIdentifier on the command line is required to reproduce. In fact you get the same error if you try to build the net6.0-macos framework with the android RuntimeIdentifier:
Which makes me think this is a variation of dotnet/sdk#21877, where the RuntimeIdentifier specified on the command line is used for all target frameworks during the restore operation. This also means there's a workaround: don't specify the RuntimeIdentifier on the command line, but in the project file instead: <RuntimeIdentifier Condition="'$(TargetFramework)' == 'net6.0-android'">android-x64</RuntimeIdentifier> |
Closing as duplicate of dotnet/sdk#21877. |
Steps to Reproduce
I'm opening this issue in this repository because it seems related to the restore graph generation in
net6.0-macos
.I'm also not sure about the repro steps, but here we go:
dotnet new install Uno.ProjectTemplates.Dotnet
dotnet new unoapp -o testapp
cd testapp\testapp.Mobile
dotnet build -f net6.0-android -c Release -p:RuntimeIdentifier=android-x64
(Android is on purpose here, because that's how the issue seems to happen, but it may not be the trigger)
Expected Behavior
Compilation succeeds.
Actual Behavior
Environment
Build Logs
android-netcoremobile-sampleapp.zip
The text was updated successfully, but these errors were encountered: