Visual Studio 2005 错误:生成引导程序时发生错误:语法无效

发布于 2024-07-05 09:56:51 字数 1932 浏览 8 评论 0原文

我正在使用 VS 2005,但我的机器出了问题。 突然之间,我无法再构建部署文件。 构建消息是:

ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error

快速谷歌搜索会显示最后两行,但之前在网络空间中没有人报告过第一条消息。 (万岁!我是第一个在“网上”的人!)

我办公室的其他机器能够进行构建。 我的机器之前已经能够进行构建。 我不知道是什么变化破坏了我盒子上事物的微妙平衡。 我还尝试了所有传统的仪式,即关闭 Visual Studio、清除所有 bin 和 obj 文件夹、重新启动等,但均无济于事。

为了简单起见,我使用部署文件创建了一个小型“Hello World”应用程序。 以下是构建输出:

------ Build started: Project: HelloWorld, Configuration: Debug Any CPU ------
HelloWorld -> C:\Vault\Multi Client\Tests\HelloWorld\HelloWorld\bin\Debug\HelloWorld.exe
------ Starting pre-build validation for project 'HelloWorldSetup' ------
------ Pre-build validation for project 'HelloWorldSetup' completed ------
------ Build started: Project: HelloWorldSetup, Configuration: Debug ------
Building file 'C:\Vault\Multi Client\Tests\HelloWorld\HelloWorldSetup\Debug\HelloWorldSetup.msi'...
ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

我正在使用:

  • MS Visual Studio 2005 版本 8.0.50727.762 (SP .050727-7600)
  • .NET Framework 版本 2.0.50727
  • 操作系统: Windows XP Pro

再次,我不知道发生了什么变化。 我只知道有一天,一切都运转良好;但有一天,一切都进展顺利。 第二天,我突然根本无法进行任何部署构建(尽管所有其他项目仍然可以正常编译)。

我在 MSDN 上发布了 此内容 大约一个月前,他们似乎也不知道发生了什么。

有人知道这是关于什么的吗?


@Brad Wilson:谢谢,但是如果您阅读我原来的帖子,您会发现我已经从头开始了整个解决方案,但这没有帮助。


@deemer:我经历了卸载和重新安装的所有痛苦,尽管我在等待时没有阅读您推荐的读物......而且 - 痛苦! - 仍然再次出现相同的错误。 似乎我的计算机已被标记为不适合再次进行部署构建。

有谁知道这个“秘密开关”可能在哪里吗?

I'm working on VS 2005 and something has gone wrong on my machine. Suddenly, out of the blue, I can no longer build deployment files.
The build message is:

ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error

A quick Google search brings up the last 2 lines, but nobody in cyberspace has ever reported the first message before. (Hooray! I'm first at SOMETHING on the 'net!)

Other machines in my office are able to do the build.
My machine has been able to do the build before. I have no idea what changed that upset the delicate balance of things on my box.
I have also tried all the traditional rituals i.e. closing Visual Studio, blowing away all the bin and obj folders, rebooting, etc. to no avail.

For simplicity's sake, I created a little "Hello World" app with a deployment file.
Herewith the build output:

------ Build started: Project: HelloWorld, Configuration: Debug Any CPU ------
HelloWorld -> C:\Vault\Multi Client\Tests\HelloWorld\HelloWorld\bin\Debug\HelloWorld.exe
------ Starting pre-build validation for project 'HelloWorldSetup' ------
------ Pre-build validation for project 'HelloWorldSetup' completed ------
------ Build started: Project: HelloWorldSetup, Configuration: Debug ------
Building file 'C:\Vault\Multi Client\Tests\HelloWorld\HelloWorldSetup\Debug\HelloWorldSetup.msi'...
ERROR: An error occurred generating a bootstrapper: Invalid syntax.
ERROR: General failure building bootstrapper
ERROR: Unrecoverable build error
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

I am using:

  • MS Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600)
  • .NET Framework Version 2.0.50727
  • OS: Windows XP Pro

Again, I have no idea what changed. All I know is that one day everything was working fine; the next day I suddenly can't do any deployment builds at all (though all other projects still compile fine).

I posted this on MSDN about a month ago, and they don't seem to know what's going on, either.

Anyone have any idea what this is about?


@Brad Wilson: Thanks, but if you read my original post, you'll see that I already did start an entire solution from scratch, and that didn't help.


@deemer: I went through all the pain of uninstalling and reinstalling, even though I didn't have your recommended reading while waiting... and - Misery! - still the same error reappears. It seems that my computer has somehow been branded as unsuitable for doing deployment builds ever again.

Does anyone have any idea where this "secret switch" might be?

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

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

发布评论

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

评论(5

旧情勿念 2024-07-12 09:56:51

不幸的是,该错误是安装项目的通用错误处理程序。 作为一个大胆的猜测,我想说也许安装项目以某种方式损坏了,这导致了“无效语法”错误。

尝试创建一个新的安装项目,并开始一步一步地执行操作,看看是否可以重现该问题(或者,希望完全避免它)。

Unfortunately, that error is the general catch-all error handler for setup projects. As a wild guess, I'd say that maybe the setup project got corrupted somehow, which is causing the "Invalid Syntax" error.

Try creating a new setup project and start by doing things one step at a time, and see if you can reproduce the problem (or, hopefully, avoid it altogether).

千秋岁 2024-07-12 09:56:51

如果它不仅仅在一台机器上构建,那么要么您已经设法使该机器不同,要么 VS2005 安装已损坏。 如果您仅从表面上理解错误消息,那么问题可能是后者。 尝试运行 VS2005 安装程序的修复功能,如果失败,请重新安装 VS2005。 《安德的游戏》是一本值得在等待时阅读的好书:-|。

If it doesn't build only on the one machine, then either you've managed to make that machine different, or the VS2005 install is corrupted. If you take the error message at face-value, then the problem is probably the latter. Try running the repair feature of the VS2005 installer, or failing that, reinstall VS2005. Ender's Game is a good book to read while you're waiting :-|.

迷路的信 2024-07-12 09:56:51

禁用引导

In Solution Explorer, select the deployment project.

On the Project menu, click Properties.

In the Property Pages dialog box, expand the Configuration Properties node, and then select the Build property page.

Click the Prerequisites button.

In the Prerequisites dialog box, clear the Create setup program to install prerequisite components check box, and then click OK. 

Disable bootstrapping

In Solution Explorer, select the deployment project.

On the Project menu, click Properties.

In the Property Pages dialog box, expand the Configuration Properties node, and then select the Build property page.

Click the Prerequisites button.

In the Prerequisites dialog box, clear the Create setup program to install prerequisite components check box, and then click OK. 
只为守护你 2024-07-12 09:56:51

我遇到了类似的问题(生成引导程序时发生错误:无法完成 [YourAssemblyPath] 的资源更新,错误为 80070005)。 此错误发生在安装项目的后续构建中(创建安装项目后的第一次构建始终对我有用)。 事实证明,它与我的源代码控制客户端(Sourcegear Vault)和 MS Security Essentials 有关。 我将 Sourcegear 的 VaultGUIClient.exe 添加为 Security Essentials 中的排除进程。


  • Win 7 Ult x64
  • VS2010 Prem SP1
  • Sourcegear Vault 5.0.4 (18845)
  • 安全必需品版本:2.1.1116.0

I had a similar issue (An error occurred generating a bootstrapper: Unable to finish updating resource for [YourAssemblyPath] with error 80070005). This error occurred on subsequent builds of the a setup project (first build after setup project creation always worked for me). It turned out to be related to both my source control client(Sourcegear Vault) and MS Security Essentials. I added Sourcegear's VaultGUIClient.exe as an Excluded Process in Security Essentials.


  • Win 7 Ult x64
  • VS2010 Prem SP1
  • Sourcegear Vault 5.0.4 (18845)
  • Security Essentials Version: 2.1.1116.0
微凉 2024-07-12 09:56:51

解决方案!
感谢 Microsoft 支持的 Michael Bleifer - 我安装了 .NET 2.0 SP1,问题解决了!

SOLUTION!
Thanks to Michael Bleifer of Microsoft support - I installed .NET 2.0 SP1, and the problem was solved!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文