用于MSBuild社区任务的Intellisense不起作用 [英] Intellisense for MSBuild Community Tasks doesn't work

查看:81
本文介绍了用于MSBuild社区任务的Intellisense不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS 2010 RC1.我下载并安装了MSBuild社区任务(MCT). (要提供完整的信息,我还安装了MSBuild Extension Pack)

I'm using VS 2010 RC1. I download MSBuild Community Tasks (MCT) and install it. (To give full information, I have also installed MSBuild Extension Pack)

然后,为了让Intellisense可以完成MCT的任务,我将文件C:\ Program Files \ MSBuild \ MSBuildCommunityTasks \ MSBuild.Community.Tasks.xsd复制到C:\ Program Files \ Microsoft Visual Studio 10.0 \ Xml \ Schemas \ 1033 \ MSBuild \ MSBuild.Community.Tasks.xsd

Then, in order to have Intellisense work for MCT 's tasks, I copied the file C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.xsd to C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\1033\MSBuild\MSBuild.Community.Tasks.xsd

我启动VS并创建一个项目(构建)文件,如下所示:

I start VS and create a project (build) file as below:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
  <_
 </Project>

开始输入目标时,我那里没有Intellisense.

As starting to type a Target, I have no Intellisense there.

我尝试打开属性窗格,单击架构浏览按钮,添加文件C:\ Program Files \ MSBuild \ MSBuildCommunityTasks \ MSBuild.Community.Tasks.xsd,但是Intellisense仍然无法正常工作!删除此模式后,Intellisense可以恢复工作,当然,它仅适用于其他任务,但适用于MCT任务.

I try to open the property pane, click the schema browsing button, add the file C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.xsd but Intellisense still not work! Removing this shcema, the Intellisense returns to work and of course, just works for other tasks but MCT tasks.

有人遇到像我一样的问题吗?请帮忙!

Does anyone have met the same problem like me? Please help!

推荐答案

您需要将以下行添加到C:\program files\Microsoft Visual Studio 10.0\Xml\Schemas\1033\Microsoft.Build.xsd

You need to add the following line to C:\program files\Microsoft Visual Studio 10.0\Xml\Schemas\1033\Microsoft.Build.xsd

<xs:include schemaLocation="MSBuild\MSBuild.Community.Tasks.xsd"/>

它应该放在文件的末尾,在</xs:schema>

It should be put at the end of the file, before the </xs:schema>

这篇关于用于MSBuild社区任务的Intellisense不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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