[MAUI] warning MSB3270: There was a mismatch between the processor architecture of the project being built...
See original GitHub issuePlatform
- OS: iOS
- MAUI: latest
Describe the bug When adding the Sharpnado.Tabs.Maui nuget to a simple class library targeting net6.0-ios, I get the following warning when building the library:
warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Nuget\sharpnado.tabs.maui\3.0.0\lib\net6.0-ios15.4\Maui.Tabs.dll", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
Could you please help me understand it and fix it ?
To Reproduce Steps to reproduce the behavior:
- Create a class library for net6.0
- Target net6.0-ios (see csproj below)
- Add a package reference to Sharpnado.Tabs.Maui (3.0.0)
- Build library
- See warning
csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-ios</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Sharpnado.Tabs.Maui" Version="3.0.0" />
</ItemGroup>
</Project>
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
There was a mismatch between the processor architecture ...
The message says that you are trying to use a dependency that is of an architecture that doesn't match the target architecture your...
Read more >How do I fix the Visual Studio compile error, "mismatch ...
Go to the Build|Configuration Manager menu item. Find your project in the list, under Platform it will say "Any CPU"; Select the "Any...
Read more >MSB3270: There was a mismatch between the processor ...
The warning was warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor ...
Read more >Solved: Build warning - mismatch between the processor ...
Solved: warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor.
Read more >SDK 7 does not generate MSB3270 "mismatch between ...
There's a possible regression in SDK 7 with regard to generating MSB3270 warning (mismatch between the processor architecture of the project ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have to figure out how the compatibility with the framework versions works… If someone could enlighten me:
I thought a .net6 lib could be use in a .net7 project, but it seems the other way around according to: .NET 7 breaking change: Library support for older frameworks - .NET
So could someone confirm I just have to always upgrade my libs to the latest .net version to be compatible with the larger number of projects ?
were an issue in the
csproj.userfile (wtf). Version 3.0.1 fixes the issue