Emanuela Colta
Emanuela Colta

Reputation: 2207

Error at building project in MonoDevelop

I tried to build my existing MVC application with MonoDevelop. The error I get is this: Error: Error building target IncludeRoslynCompilerFilesToItemGroup: Item has already been added. Key in dictionary: 'Link' Key being added: 'Link'

The project has been developed on another machine running Windows and using VS2017 and the error I get when running the project on my machine running Linux.

The command grep IncludeRoslynCompilerFilesToItemGroup * -R in my terminal returns packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5/build/net45/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props: <Target Name="IncludeRoslynCompilerFilesToItemGroup" AfterTargets="ResolveAssemblyReferences" > But I'm stuck at this point. Do you have any recommendations about what should I do next to solve this error?

Upvotes: 0

Views: 135

Answers (1)

csharpwinphonexaml
csharpwinphonexaml

Reputation: 3683

based on this answer one possible solution is to remove these references from your project:

  • Microsoft.Net.Compilers
  • Microsoft.CodeDom.Providers.DotNetCompierPlatform

Upvotes: 2

Related Questions