Please note that due to the bug mentioned below, XSD files are no longer provided.

CONFIGURING INTELLISENSE

image002.png Please note that there is a bug in Visual Studio that reduces the ability to use IntelliSense with MSBuild tasks. Full details are provided in the following blog post: Providing IntelliSense for the MSBuild Extension Tasks

COPY THE SCHEMA FILES

a. Copy all the .xsd files for which you require Intellisense

From:

%ProgramFiles%\MSBuild\ExtensionPack

To:

%ProgramFiles%\Microsoft Visual Studio 9.0\Xml\Schemas\1033\MSBuild

REGISTER THE SCHEMA

b. Open

%ProgramFiles%\Microsoft Visual Studio 9.0\Xml\Schemas\1033\Microsoft.Build.xsd

c. Add the appropriate bold lines below (i.e. for each file you have chosen to copy). DO NOT add an include for files you have not copied.

<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://schemas.microsoft.com/developer/msbuild/2003"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msb="http://schemas.microsoft.com/developer/msbuild/2003"
elementFormDefault="qualified">

<!-- =================== IMPORT COMMON SCHEMA =========================== -->
<xs:include schemaLocation="MSBuild\Microsoft.Build.CommonTypes.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Framework.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Biztalk.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.IIS7.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.JSharp.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Sql2005.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Sql2008.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Stylecop.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.Sync.xsd"/>
<xs:include schemaLocation="MSBuild\MSBuild.ExtensionPack.TFS.xsd"/>

PLEASE NOTE

It is recommended that you only copy the schema files for which you require IntelliSense. This way your IntelliSense list will not be populated with tasks you have no intention of using
image003.png

Last edited Dec 29, 2011 at 2:45 PM by mikeFourie, version 4

Comments

No comments yet.