自安装VS 2015以来存在构建问题 [英] Build problems since installing VS 2015

查看:117
本文介绍了自安装VS 2015以来存在构建问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我有一个VB.NET项目,可在VS2013中完美构建.当我尝试在VS2015中构建它时,我收到49000+愚蠢的错误

Hi all. I have a VB.NET project which builds perfect in VS2013. When I try to build it in VS2015 I get 49000+ stupid errors

错误 BC30002 未定义类型"System.Void".

Error BC30002 Type 'System.Void' is not defined.

错误 BC30002 未定义类型'System.String'.

Error BC30002 Type 'System.String' is not defined.

错误 BC30002 类型"Global.System.Runtime.Versioning.TargetFrameworkAttribute"未定义.

Error BC30002 Type 'Global.System.Runtime.Versioning.TargetFrameworkAttribute' is not defined.

任何想法?

推荐答案

您好BuckBuchanan,

Hi BuckBuchanan,

哪种类型的项目?是WinForms项目还是Website项目?将此项目升级到Visual Studio 2015时,会收到任何错误消息吗?

Which type of project? Is it a WinForms project or a Website project? Do you have get any error message when you upgrade this project to Visual Studio 2015?

请使用Visual Studio 2015创建一个新项目,以检查它是否与Visual Studio 2015相关.如果新项目没有问题,请尝试以下步骤.

Please create a new project with Visual Studio 2015 to check whether it is related to Visual Studio 2015. If no problem with new project, please try with below steps.

  1. 在Visual Studio 2015中扩展项目的引用"节点,确保是否缺少任何dll.如果缺少dll,则会在该dll上显示警告图标.
  2. 使用Visual Studio 2013打开项目,确认当前项目的.NET Framework版本并记住它.
  3. 关闭Visual Studio 2013,并使用Visual Studio 2015打开项目.
  4. 右键单击项目以选择属性".
  5. 更改目标框架".如果与Visual Studio 2013中的项目不同,请在应用程序"选项卡中单击.检查该解决方案中的所有项目.
  6. 如果Framework版本相同,请使用Visual Studio 2015创建一个新项目,然后移动项目文件与添加现有项目";到当前的新项目.

如果Visual Studio 2015中的新项目存在相同的问题,请按照以下步骤解决此问题.

If the same problem with new project in Visual Studio 2015, please troubleshooting this problem with following steps.

  1. 以管理员身份打开Visual Studio 2015.
  2. 使用"Deven.exe/SafeMode"在安全模式下运行Visual Studio 2015;
  3. 通过工具->重置所有设置"命令,以防止在Visual Studio启动时加载所有第三方VSPackage.选项->导入和导出设置->重置所有设置.
  4. 通过控制面板"->修复Visual Studio 2015. Visual Studio 2015->更改->维修.

请告诉我们以上步骤的结果,这可以帮助我们解决由项目或Visual Studio 2015引起的问题.

Please tell us the result for above steps, which can help us troubleshoot the problem is caused by project or Visual Studio 2015.

最好的问候,
威威

Best Regards,
Weiwei


这篇关于自安装VS 2015以来存在构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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