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

1

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

问题描述

限时送ChatGPT账号..

我有一个在 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.

我该如何解决这个问题?

How can I get around this?

推荐答案

问题似乎出在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文件夹
  • 重新打开解决方案

之后,不要为该解决方案重新启用轻量级解决方案加载.

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.

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

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14

具有未知类型的 CreateDelegate
CreateDelegate with unknown types(具有未知类型的 CreateDelegate)...
2023-11-11 C#/.NET开发问题
5

将运算符与其他参数一起传递
Passing an operator along with other parameters(将运算符与其他参数一起传递)...
2023-11-11 C#/.NET开发问题
6

Func<T>.BeginInvoke 使用线程池吗?
Does Funclt;Tgt;.BeginInvoke use the ThreadPool?(Funclt;Tgt;.BeginInvoke 使用线程池吗?)...
2023-11-11 C#/.NET开发问题
6