0

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?

Emanuela Colta
  • 2,129
  • 4
  • 18
  • 31

1 Answers1

2

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

  • Microsoft.Net.Compilers
  • Microsoft.CodeDom.Providers.DotNetCompierPlatform
csharpwinphonexaml
  • 3,659
  • 10
  • 32
  • 63