How to set AutoGenerateBindingRedirects in Rider?

Answered

I'm new to Rider. I'm working on project that originally has been targeted for Windows and Linux users. Unfortunately the project maintainer stopped working on the project 4 years ago, but the project needs some urgent updates. I managed to update the project successfully on Windows 10 using Visual Studio 2015 Community Edition.

Now, since Linux users reported some serious issues, I wanted to bring the solution to Linux (Ubuntu 18.04 with Mono 5.20.1.19) using Rider on Linux. So far I can build the solution without errors. However, part of the solution is a library of consisting of 25 projects, where I get the following warning for 16 projects that are part of it:

" Microsoft.Common.CurrentVersion.targets(2130, 5): [MSB3276] /usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2130,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190".

For me this warnings are annoying and I would like to get rid of them, however I dont know how and where to set this "AutoGenerateBindingRedirects" property in Rider. Any suggestions are welcome.

0
2 comments
Avatar
Permanently deleted user

ok, so far I found out that the only way to manage these kind of properties seems to be adding them manually to the project files.

I added <AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects> to the PropertyGroup in the .csproj.user files and that solved the issue.

0

We'll fix the binding redirects issue it in the scope of RIDER-5482. Sorry for the inconvenience!

0

Please sign in to leave a comment.