VS 2010,VSTO Excel 2010加载项发布失败 [英] VS 2010, VSTO Excel 2010 Add-In publish fails
问题描述
大家好,
我在Visual Studio 2010中为Excel 2010创建了一个新的加载项 版本10.0 .30319.1 RTMRel。
I created a new Add-In for Excel 2010 in Visual Studio 2010 Version 10.0.30319.1 RTMRel.
项目构建没有错误。
当我从构建菜单中单击发布并完成向导时,我得到了以下错误:
When I click on publish from the build menu and finish in the wizard I get the following error:
------发布已开始:项目:首席财务官规则管理器加载项,配置:调试任何CPU ------
------ Publish started: Project: CFO Rules Manager Add-In, Configuration: Debug Any CPU ------
C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \v10。 0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(571,9):错误MSB3169:生成引导程序时发生错误:无法开始更新bin \Debug \app.publish \ setup的资源。 exe
,错误80070002
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(571,9): error MSB3169: An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Debug\app.publish\setup.exe with error 80070002
错误:无法发布,因为项目无法构建。
Error: Cannot publish because a project failed to build.
========= =构建:3成功或最新,0失败,0跳过==========
========== Build: 3 succeeded or up-to-date, 0 failed, 0 skipped ==========
==========发布: 0成功,1失败,0跳过ped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
有谁知道出了什么问题?
Does anyone know what is wrong?
请帮忙。
谢谢,
Michael
推荐答案
嗨迈克尔!
我遇到了同样的问题。我无法从上下文菜单或项目属性中发布我的加载项 - >发布标签。
I was having the same issue. I can't publish my add-in from the context menu or from the project properties -> publish tab.
您的帖子激励我进行更多调查。我反映了微软构建程序集正在寻找确切的错误,查看了构建文件,搜索了很多内容等等,没有运气。
Your post motivated me to investigate a little more. I reflected microsoft build assemblies looking for the exact error, reviewed the build file, googled a lot, etc with no luck.
但我有一些进展。我禁用了VS加载项,TypeMock,现在我可以使用上下文菜单发布了。你能看看你在VS中安装了什么加载项吗?
But I had some progress. I disabled a VS add-in, TypeMock, and now I can publish using the context menu. Can you check what add-ins you have installed in VS?
希望这会有所帮助。
问候,
Mauro
这篇关于VS 2010,VSTO Excel 2010加载项发布失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!