-
Notifications
You must be signed in to change notification settings - Fork 516
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
.NET MAUI project doesnt build on VS Code but does on VS4Mac #19596
Comments
The problem is that the NuGet doesn't support the arm64 architecture in the simulator. This is explained a bit more in the release notes for .NET 8: https://github.com/xamarin/xamarin-macios/wiki/.NET-8-release-notes#default-runtimeidentifiers Looks like there's also an issue filed: JimmyPun610/BarcodeScanner.Mobile#211 |
Thanks @rolfbjarne , but whats the workaround for me in this case? I have team members who are on intel macs and Im on M1 macs. How do we go about implementing a workaround that caters for both? Can you please help me out pointing to correct properties? |
It's not very pretty, but if you add this to the csproj: <PropertyGroup>
<RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
</PropertyGroup> that will work on both x64 and arm64 macs. However, if you want to build for device, you'll have to remove it (when building for device the correct RuntimeIdentifier is You might be able to do something like this if you can select the current configuration in your IDE of choice - you create two configurations, named <PropertyGroup>
<RuntimeIdentifier Condition="'$(Configuration)' == 'iPhoneSimulator'">iossimulator-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(Configuration)' == 'iPhone'">ios-arm64</RuntimeIdentifier>
</PropertyGroup> |
I can't speak for Rider, but for VSCode, would it be possible to get a binlog (https://aka.ms/binlog)? |
That link doesnt explain how to capture it from VS Code. However, I noticed this in the output:
Note that |
link to a duplicate of this issue: microsoft/vscode-dotnettools#744 |
This is an issue in VSCode, so let's track this in microsoft/vscode-dotnettools#744. |
We have a project dependency on this nuget package which targets .NET 8. Unfortunately, the project fails to build on both Rider and VS Code but builds fine on VS 4 Mac. If we remove the nuget reference then it builds on all three IDE's. Im trying to understand whats the root cause and how to get around it.
P.S. Im running it on a M1 Mac
Steps to Reproduce
Expected Behavior
Project should build and deploy fine
Actual Behavior
Project build fails to build with:
Environment
Version information
Build Logs
VSCodeLog.txt
RiderLog.txt
Example Project (If Possible)
MauiAppDotNet8.zip
The text was updated successfully, but these errors were encountered: