编译器错误Visual Studio mac [英] Compiler error Visual studio mac

查看:202
本文介绍了编译器错误Visual Studio mac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Visual Studio for Mac预览版。我的项目来自git仓库,当我尝试编译它时,编译器给我这个错误:

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:

错误:构建目标的错误IncludeRoslynCompilerFilesToItemGroup:项目已经已被添加。键入字典:'链接'键被添加:'链接'(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.

推荐答案

我有同样的问题,解决办法就是删除两个引用。像这样

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

Microsoft.Net.Compilers

Microsoft.Net.Compilers

Microsoft.CodeDom.Providers.DotNetCompierPlataform

Microsoft.CodeDom.Providers.DotNetCompierPlataform

我在找到了此解决方案roslyn编译器未使用msbuild复制到AspnetCompileMerge文件夹

这篇关于编译器错误Visual Studio mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆