[问题记录.VisualStudio]VS2022调试运行报错 “projectFilePath”不能为空字符串(““)或以 null 字符开头。

【问题描述】

1) 用VS2022调试运行,弹出错误对话框,显示:

---------------------------
Microsoft Visual Studio
---------------------------
“projectFilePath”不能为空字符串("")或以 null 字符开头。

参数名: projectFilePath
---------------------------
确定   
---------------------------

2) 点“确定”后,调试进程其实已经启动成功,能正常运行。

3) 重启VS未能解决

【问题原因】

未知。

在网上搜到类似问题,说是和VS的“lightweight loading”特性有关(但没弄明白是个什么...)。

【解决办法】

关闭VS -> 删除程序目录下的 .vs 目录 -> 启动VS,再运行调试,正常。

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

To fix it, first clean up:

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.

摘抄自:.net - Build Failure. Error: 'path' cannot be an empty string ("") or start with the null character - Stack Overflow

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

俊哥V

这是个嘛?

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值