构建失败.错误:“路径"不能为空字符串(“")或以空字符开头 [英] Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character

查看:728
本文介绍了构建失败.错误:“路径"不能为空字符串(“")或以空字符开头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以在VS2015中正常运行的解决方案.我刚刚安装了VS2017 RTM,转换后,尝试构建解决方案的尝试立即失败,并显示以下错误:

I have a solution that builds fine in VS2015. I just installed VS2017 RTM and after conversion, attempts to build the solution fail immediately with the error:

构建失败.错误:路径"不能为空字符串(")或以空字符开头.

Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character.

我该如何解决?

推荐答案

问题似乎与VS2017的新轻量级解决方案加载功能有关.

The problem seems to be with the new lightweight solution loading feature of VS2017.

要修复此问题,请先清理:

To fix it, first clean up:

  • 关闭Visual Studio 2017
  • 删除或重命名.vs文件夹
  • 重新打开解决方案
  • Close Visual Studio 2017
  • Delete or rename the .vs folder
  • Reopen the solution

此后,请勿为该解决方案重新启用轻量级解决方案加载.

Afterwards, don't re-enable lightweight solution loading for that solution.

您可以为选项中的所有解决方案完全禁用轻量级解决方案加载,但是,如果问题仅适用于某些解决方案,则可能会有些麻烦.

You can completely disable lightweight solution loading for all solutions in the options, but if the problem only applies to some solutions then that might be a bit heavy handed.

这篇关于构建失败.错误:“路径"不能为空字符串(“")或以空字符开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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