“找不到文件”文件明确地、绝对地、完全确定地存在
我正在 Visual Studio 中创建一个安装项目,我将一个文件包含到要安装的项目 NuVisions.sqlite 中。当尝试构建时,我收到以下错误:
Error 3 Could not find file 'Z:\work\neothinktank.net\newlee\NuVisions\NuDAO\NuVisions.sqlite' 'The parameter is incorrect.' Z:\work\neothinktank.net\newlee\NuVisions\SetupBionetics\SetupBionetics.vdproj SetupBionetics
唯一的问题是,我绝对 1000% 确定,毫无疑问,有问题的文件确实存在。我做错了什么?
I am creating a setup project in visual studio, I included a file into the project NuVisions.sqlite to be installed. When attempting to build I get the following error:
Error 3 Could not find file 'Z:\work\neothinktank.net\newlee\NuVisions\NuDAO\NuVisions.sqlite' 'The parameter is incorrect.' Z:\work\neothinktank.net\newlee\NuVisions\SetupBionetics\SetupBionetics.vdproj SetupBionetics
The only problem is that I am absolutely 1000% certain with no doubt of any kind whatsoever that the file in question does exist. What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
过了这么久才知道为什么会发生这种情况。
Z:是一个网络驱动器,显然 VS 在某些情况下将项目存储在网络驱动器上时会有点暴躁。
Found out why this happens after so long.
Z: is a network drive and apparently VS gets a bit cranky when storing projects on network drives in certain instances.
Windows 中有一个恼人的错误,在处理具有长路径的大型项目时偶尔会弹出。问题是您只能在命令行上或向 exec() 传递 32K 字符。任何过去的内容都会被默默地截断,导致声称丢失文件和错误参数。当编译脚本将大量文件传递给链接器时,可能会发生这种情况。
我意识到这是一个渺茫的机会,但有可能是这种情况吗?
There's an annoying bug in Windows that pops up occasionally when handling large projects with long paths. The issue is you can only pass 32K characters on a commandline or to exec(). Anything past that gets silently truncated causing claims of missing files and bad parameters. It can happen when compile scripts are passing lots of files to a linker.
I realise it's a long-shot but any chance that might be the case?