4

I'm working on Visual Studio for Mac preview. My project comes from a git repository and when i try to compile it, the compiler gives me this error:

Error: Error building target IncludeRoslynCompilerFilesToItemGroup: Item has already been added. Key in dictionary: 'Link' Key being added: 'Link' (NameOfTheProject)

I can't understand this error and i didn't find any resource about it on the web. Can you please help me? Thank you.

1 Answers1

4

I have the same problem and the solution is just remove two references. like this

Microsoft.Net.Compilers

Microsoft.CodeDom.Providers.DotNetCompierPlataform

I found this solution at roslyn compiler not copied to AspnetCompileMerge folder using msbuild

Community
  • 1
  • 1