无法打开项目“XXX”,因为无法创建Visual Basic 2017编译器。已添加具有相同键的项目。 [英] Project 'XXX' could not be opened because the Visual Basic 2017 compiler could not be created. An item with the same key has already been added.

查看:65
本文介绍了无法打开项目“XXX”,因为无法创建Visual Basic 2017编译器。已添加具有相同键的项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我们正在尝试将我们的解决方案从VS 2015迁移到VS 2017.安装VS 2017后,版本15.5.3加载解决方案后,我收到错误:


项目'Client'无法打开,因为无法创建Visual Basic 2017编译器。已经添加了具有相同密钥的项目。





知道是什么原因造成的它以及如何修复?

解决方案

你好Olexandr Soukhoy,


欢迎来到MSDN论坛。


您是否尝试在VS 2017中打开其他现有的VS 2015解决方案?请检查此问题是否仅发生在此特定解决方案或所有解决方案中。


如果此问题仅针对此解决方案发生,请尝试以下操作:


  1. 以管理员身份运行VS以启动
  2. 如果您的应用程序是asp.net,请卸载此项目并编辑.csproj文件,将< UseIISExpress> false< / UseIISExpress> 设置为true ,删除< UseIIS> True< / UseIIS>
    < IISUrl> http:// localhost / MyWebApp< / IISUrl > ,然后重新加载项目


如果没有,请查看

此类似问题
并以管理员身份重新运行VS安装程序并进行修复。如果不起作用,请尝试

将其卸载
并运行
InstallCleanup.exe 工具
,然后重新安装它以进行测试。



最好的问候,


萨拉


Hello,

we are trying to migrate our solution from VS 2015 to VS 2017. After installing VS 2017, version 15.5.3 after loading the solution I get the error:

Project 'Client' could not be opened because the Visual Basic 2017 compiler could not be created. An item with the same key has already been added.


Any idea what is causing it and how it can be fixed?

解决方案

Hi Olexandr Soukhoy,

Welcome to the MSDN forum.

Have you tried to open other existing VS 2015 solutions in the VS 2017? Please check if this issue only happens to this specific solution or all solutions.

If this issue only occurs for this solution, please have a try with the following:

  1. Run the VS as administrator to start
  2. If your application is asp.net, please unloaded this project and edit .csproj file, set <UseIISExpress>false</UseIISExpress> to true, remove <UseIIS>True</UseIIS> and <IISUrl>http://localhost/MyWebApp</IISUrl>, then reload project

If not, please have a look at this similar issue and re-run the VS installer as administrator and repair it. If not works, try to uninstall it and run InstallCleanup.exe tool, then re-install it to test.

Best regards,

Sara


这篇关于无法打开项目“XXX”,因为无法创建Visual Basic 2017编译器。已添加具有相同键的项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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