-
Notifications
You must be signed in to change notification settings - Fork 522
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
nuget looking for (old, not mono) Microsoft.NETCore.App.Runtime.maccatalyst-arm64 #15664
Comments
Also, when switching to iOS <TargetFramework>net6.0-ios</TargetFramework>
<RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier> |
Thanks, we will have a look at it! |
using
but still no luck with
It does not seems possible to have a project with multiple platforms that target MacCatalyst with arm64 :( |
This error:
occurs when a project hasn't been restored for the RID in question, and you're passing in |
This csproj restores just fine for me: <?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-ios;net6.0-maccatalyst;net6.0-macos</TargetFrameworks>
<RuntimeIdentifier>maccatalyst-arm64</RuntimeIdentifier>
</PropertyGroup>
</Project> $ dotnet restore
Determining projects to restore...
Restored MySimpleApp.csproj (in 212 ms). Can you provide a test project? |
Hi @spouliot. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@rolfbjarne yes,
Since you're back to dotnet/sdk#21877 which mix SDK, like When I restore independently and build with How would you build the |
This seems to work for me: $ dotnet restore /p:RuntimeIdentifier=maccatalyst-arm64
$ dotnet build -f net6.0-maccatalyst /p:RuntimeIdentifier=maccatalyst-arm64 --no-restore *.csproj |
Hi @spouliot. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@rolfbjarne was your project based on the default MAUI template for all (at least multiple) platforms ?
|
Try updating to 15.4.447: https://github.com/xamarin/xamarin-macios/releases/tag/dotnet-6.0.4xx-447, where we've done this: #15491 |
Thanks! Works for MAUI and likely on my original code (need to remove some workaround to try it). I thought I updated to 447 but I now remember the downloads were failing at the time and forgot to try updating again. |
This is semi-related to dotnet/sdk#21877 where a .csproj has several target frameworks.
This leads to the known issues :( but this one seems different.
The main project imports another file that contains
That's to avoid (some) of the issues with dotnet/sdk#21877
That works well to do a
dotnet restore
for macOS. However switching to MacCatalyst leads to nuget errors to retrieve the runtime package.Steps to Reproduce
dotnet restore
inside a project with multiple framework targets.Microsoft.NETCore.App.Runtime.maccatalyst-arm64
does not exists (anymore)Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64
was its replacement.Expected Behavior
Successful restore.
Actual Behavior
Nuget error
NU1102
.Environment
Version information
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: