Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense for MSBuild Community Tasks doesn't work

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)

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

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

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

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

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!

like image 590
Nam G VU Avatar asked Mar 25 '10 14:03

Nam G VU


1 Answers

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"/>

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

like image 149
Ryan Conrad Avatar answered Oct 20 '22 15:10

Ryan Conrad