创建Visual Studio集成包时出错 [英] Error when creating Visual Studio Integration Package

查看:82
本文介绍了创建Visual Studio集成包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建Visual Studio集成包项目,但出现以下错误:

无法读取项目文件'monkey.csproj'.
C:\ Path \ to \ monkey.csproj(51,14):元素<#text>在元素< ItemGroup>下无法识别.

我最终得到了一个空解决方案.

如果我打开csproj文件,我会在整个过程中看到以下内容:
%ToolWindowItemStart %% br%ToolWindowItemEnd
%MenuItemToolWindowStart%
%ToolWindowItemEnd%MenuItemToolWindowEnd%

在生成的.cs文件等中,我也会看到类似的内容.

在创建项目时,我选择将C#与生成的密钥文件.我输入要求的名称和描述,然后选择在项目中有一个自定义编辑器.我在项目向导的末尾取消了2个单元测试项目选项.

我重新安装了VS(实际上,我在当前副本的顶部进行了安装)并下载了VS SDK的新副本,我也重新安装了.问题仍然存在.如果我不得不猜测,我会说这些文件只是向导应该修改的模板,以适合我在向导期间选择的设置-%something%是向导的提示,提示应该在何处进行更改制成.也许第二个缺失的%打破了它?

有什么想法吗?

I am trying to create a Visual Studio Integration Package project and I am getting the following error:

Unable to read the project file 'monkey.csproj'.
C:\Path\to\monkey.csproj(51,14): The element <#text> beneath element <ItemGroup> is unrecognized.

I end up with an empty solution.

If I open the csproj file, I see things like this throughout:
%ToolWindowItemStart%
%ToolWindowItemEnd
%MenuItemToolWindowStart%
%ToolWindowItemEnd%MenuItemToolWindowEnd%

I also see similar things in the generated .cs files, etc.

When creating the project, I select to use C# with a generated key file. I type in the requested names and descriptions and I've selected to have a custom editor in the project. I have deselected the 2 unit test project options at the end of the project wizard.

I reinstalled VS (actually, I did an install on top of my current copy) and downloaded a fresh copy of the VS SDK, which I also reinstalled. The problem persists. If I had to guess, I'd say that these files are just templates that the wizard is supposed to modify to fit the settings I've selected during the wizard - the %something% is a cue to the wizard of where changes should be made. Perhaps the missing % from the second one is breaking it?

Any ideas?

推荐答案

我之前从未见过这样的东西,但您的分析听起来很有效.从它的声音来看,您正在尝试构建一个基于C#的程序包.这应该会导致可装载的C#项目,但是听起来好像没有进行令牌替换,或者原始模板文件被弄乱了.

我推荐的最好的办法是完全卸载SDK.确保删除了打包向导的所有残余.然后尝试重新安装SDK.

请注意,软件包向导的.vsz随... \ Common7 \ IDE \ Extensibility Projects目录中的外接程序向导一起安装.确保不删除加载项向导.只是打包和dsl工具向导.

此外,在卸载SDK后,请确保删除"Microsoft Visual Studio 2008 SDK"下剩余的所有内容.目录.实际上,模板文件位于SDK的isualStudioIntegration \ Tools \ Wizards \ Templates目录下.


此致,
I haven't seen anything like this before, but your analysis sounds valid. From the sounds of it, you are attempting to build a C# based package. Ths should result in a loadable C# project, but it does sound like the token replacement isn't happening, or that the original templated files are messed up.

The best thing I can recommend is a full uninstall of the SDK. Making sure you remove any remnants of the package wizard. Then try reinstalling the SDK.

Note, the .vsz's for the package wizards are installed alongside the addin wizards in the ...\Common7\IDE\Extensibility Projects directory. Be sure you don't remove the add-in wizards. Just the package and dsl tool wizards.

Also, after uninstalling the SDK, be sure to delete anything remaining under the "Microsoft Visual Studio 2008 SDK" directory. The actualy template files reside under SDK's isualStudioIntegration\Tools\Wizards\Templates directory.


Sincerely,


这篇关于创建Visual Studio集成包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆