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.

8
  • First thing I would try to do is to Clean/Rebuild the project. Commented Nov 20, 2016 at 17:02
  • Unfortunately i tried it, same result :( Commented Nov 20, 2016 at 17:09
  • What kind of project? .NET Core and mobile projects? Commented Nov 21, 2016 at 0:09
  • It's a ASP.NET MVC web application with framework 4.5.2 @LexLi Commented Nov 21, 2016 at 11:49
  • @EmanueleClemente then it won't work. Currently I think Microsoft has no plan to support .NET Framework stuffs on Mac. Commented Nov 21, 2016 at 11:57

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.