question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There was a conflict between "Mono.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" and "Mono.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"

See original GitHub issue

ok, I see this entry about a Mono.Sharp conflict in error list as warning when I try to compile an the android app of xamarin.forms project which uses old packages.config:

There was a conflict between "Mono.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" and "Mono.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756".
1>    "Mono.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" was chosen because it was primary and "Mono.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" was not.
1>    References which depend on "Mono.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll].
1>        C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll
1>          Project file item includes which caused reference "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll".
1>            Mono.CSharp
1>    References which depend on "Mono.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" [].
1>        D:\Foo.App\packages\Xamarin.HotReload.1.4.19\lib
1>etstandard2.0\Xamarin.Forms.HotReload.Reloader.dll
1>          Project file item includes which caused reference "D:\Foo.App\packages\Xamarin.HotReload.1.4.19\lib
1>etstandard2.0\Xamarin.Forms.HotReload.Reloader.dll".
1>            Xamarin.Forms.HotReload.Reloader, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL
1>            D:\Foo.App\Foo.App\Foo.App\bin\Debug\Foo.App.dll
1>Found conflicts between different versions of "Mono.CSharp" that could not be resolved. 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
MagicAndre1981commented, Aug 13, 2019

no sorry, this git shit annoys me all time.

1reaction
AndreiMisiukevichcommented, Sep 30, 2019

so it was not possible to use the mono nuget all time?

then it causes compile errors or even errors during installation

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found