Conflicts between different version of 'System.Numeric.Vectors'

Richard Leonard 21 Reputation points
2021-06-10T11:03:39.82+00:00

I am getting the following error when trying to "Archive for Publish" my iOS build - "Conflicts between different version of 'System.Numeric.Vectors'".

I have tried to follow a number of the suggestions such as downgrading Newtonsoft.Json, trying to remove System.Memory from the GAC but nothing is resolving the issue.

The application will build and run when in debug and I can archive an Android build without issue but iOS will not work. The detailed output is as follows:

Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll].
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll
Project file item includes which caused reference "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll".
System.Numerics.Vectors
References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll
Project file item includes which caused reference "/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll".
/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll
/Users/richardleonard/.nuget/packages/azure.core/1.15.0/lib/netstandard2.0/Azure.Core.dll
/Users/richardleonard/Projects/TheatresScanning/TheatresScanning/bin/Release/netstandard2.0/TheatresScanning.dll
/Users/richardleonard/.nuget/packages/azure.storage.blobs/12.9.0/lib/netstandard2.0/Azure.Storage.Blobs.dll
/Users/richardleonard/.nuget/packages/azure.storage.common/12.8.0/lib/netstandard2.0/Azure.Storage.Common.dll
/Users/richardleonard/.nuget/packages/system.diagnostics.diagnosticsource/4.6.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll
/Users/richardleonard/.nuget/packages/system.memory.data/1.0.2/lib/netstandard2.0/System.Memory.Data.dll
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
Project file item includes which caused reference "/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll".
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
/Users/richardleonard/.nuget/packages/azure.core/1.15.0/lib/netstandard2.0/Azure.Core.dll
/Users/richardleonard/Projects/TheatresScanning/TheatresScanning/bin/Release/netstandard2.0/TheatresScanning.dll
/Users/richardleonard/.nuget/packages/azure.storage.blobs/12.9.0/lib/netstandard2.0/Azure.Storage.Blobs.dll
/Users/richardleonard/.nuget/packages/azure.storage.common/12.8.0/lib/netstandard2.0/Azure.Storage.Common.dll
/Users/richardleonard/.nuget/packages/system.memory.data/1.0.2/lib/netstandard2.0/System.Memory.Data.dll

I've spent 2 days where I have reinstalled xCode and VS for Mac but still get the same issue, any assistance would be greatly appreciated

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,335 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.