views:

297

answers:

2

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!

A: 

I had the same issue when I first started using VS 2010 RC1. I re-installed and it worked for a bit and stopped.

I have since downloaded and installed the trial version of VS 2010 Pro Download Here

I have not had any issues since.

bret
I did use VS 2010 at the time I post this question. This is strange... I'll check it again.
Nam Gi VU
+1  A: 

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>

Ryan Conrad
Great! I'll check it and accept your answer when I'm done.
Nam Gi VU
Did this solve your problem? because after I posted this, i checked my VS2010 and I dont have intellisense either for any msbuild file. and it highlights the namespace saying there is an error in the namespace.
Ryan Conrad

related questions