Found conflicts between different versions of the same dependent assembly, on Xamarin.iOs
jbdioli opened this issue · 2 comments
jbdioli commented
Hello
I'm using PropertyChanged.Fody VS 3.41 under Xamarin.Forms 5.0.0.2515
I'm using the .Net Standard 2.1
I've updated all PackageReference with PrivateAssets="All"
I still get a warning:
Consider app.config remapping of assembly "netstandard, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" from Version "2.0.0.0" [] to Version "2.1.0.0" [C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\netstandard.dll] to solve conflict and get rid of warning.
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file.
ModuleFody.iOS -> C:\Project\XAMARIN\ModuleFody\ModuleFody.iOS\bin\iPhone\Debug\ModuleFody.iOS.exe
Thanks for your help :)
ltrzesniewski commented
Hi,
I'm not familiar with Xamarin, but have you tried the solution suggested in the warning message?
Basially, add the following to a <PropertyGroup>
in the csproj file:
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
jbdioli commented
@ltrzesniewski Thank you so much. Sorry to be nooby that don't read correctly the error message. You gave me a good beating :D
Next time I will pay attention :)