vbc.exe 中 /win32icon 参数的 msbuild 错误

发布于 2024-12-29 21:52:45 字数 377 浏览 1 评论 0原文

我尝试使用 msbuild.exe 编译项目,

但出现此错误:

vbc : error BC30136: Error creating Win32 resources: Error reading icon '"Recycle Bin Empty.ico"' -- The filename, directory name, or volume label syntax is incorrect.

此图标是应用程序图标,位于项目的同一目录中。

vbc 使用 /win32icon:"Recycle Bin Empty.ico" 参数启动。 不知道为什么 MSBuild 无法访问该文件。

谢谢。

I try to compile a project with msbuild.exe

I have this error :

vbc : error BC30136: Error creating Win32 resources: Error reading icon '"Recycle Bin Empty.ico"' -- The filename, directory name, or volume label syntax is incorrect.

This icon is the Application icon which is in the same directory of the project.

vbc is started with /win32icon:"Recycle Bin Empty.ico" parameter.
Don't know why MSBuild can't reach the file.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的奇迹 2025-01-05 21:52:45

要尝试的一些事情

  • 删除文件名中的空格。将消除任何引用问题
  • 传递文件名的完全限定路径。将消除任何相对路径问题

Couple of things to try

  • Remove the spaces in the file name. Will eliminate any quoting issues
  • Pass the fully qualified path to the file name. Will eliminate any relative path issues
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文