Do I need to manually add <AutoGenerateBindingRedirect> metadata to the main project file in order to correctly reference assemblies?

I am using Visual Studio 2013 and MvvmCross to create an Android application using portable class libraries.

In my first view model, CatalogViewModel, I noticed that some code is highlighted as not referencing the correct assembly or incapable of resolution (the code builds fine even with these problems).

enter image description here

Examining the .NET Portable Subset assembly in Object Explorer shows the various system assemblies included (2.0.5.0 v2.0.50727 and v4.0.30319, 4.0.0.0, 5.0.5.0). Automatic link redirection for assemblies in the .NET Framework 4.5.1 can be enabled or disabled by adding this line to the .csproj file.

<AutoGenerateBindingRedirect>true</AutoGenerateBindingRedirect>

or

<AutoGenerateBindingRedirect>false</AutoGenerateBindingRedirect>

, , IDE. Core MvvmCross , , , , - .

enter image description here

+4
1

, AutoGenerateBindingRedirect. - , NuGet. Visual Studio/MSBuild.

, , , :

, ReSharper. , AutoGenerateBindingRedirect ReSharper, - .

+2

All Articles