IntelliSense Lives!!!

 

Thanks for the replies.

 

I had typed in the xmlns as I’d seen many times but the problem ended up being that the namespace in the xsd did not match the one I was typing in.  Because of this the intellisense never worked.  I used the <nantschema> task and created my own xsd with the target namespace that I had been trying to use (http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd.) This works great.  I can even see my custom and contrib. tasks in IntelliSense.  Awesome!

 

Thanks to Edwin and Bill for your help.

 

Long live the NAnt Community!!!

 

Matt Hulse

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 1:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [Nant-users] IntelliSense for NAnt build files

 

Hi Matt,

 

At a guess, the bit you are probably missing is the schema reference in your .build file.  You need to change your <project> declaration to something like:

 

<project xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd"

         name="MyApp"

         default="all"

         basedir=".">

 

Without this, Visual Studio does not know which schema it needs to use to provide intellisense.  With it, you should get prompted with the valid xml elements for where you are in your build script.

 

HTH,

 

Bill

 

 

-----Original Message-----
From: Matt Hulse [mailto:[EMAIL PROTECTED]
Sent: 15 September 2004 16:42
To: 'Boland, Craig'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] IntelliSense for NAnt build files

 

I read a lot about “IntelliSense” and have followed the instructions posted in this forum to attempt to use VS.Net 2003 with IntelliSense for editing .build files.  I am confused though about how it should work.  When the word IntelliSense is used, I am expecting more than syntax highlighting.  Can some degree of code completion / parameter listing / member listing be achieved with .Net and NAnt build files? or am I misunderstanding the use of the term IntelliSense.  I ask this because by following the instructions in all of the posts regarding Intellisense and build files I am no further ahead then if I just use a text editor that supports syntax highlighting for XML.

 

Could someone please straighten me out?

 

Thanks,

 

Matt Hulse

[EMAIL PROTECTED]

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boland, Craig
Sent: Monday, September 13, 2004 8:39 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] IntelliSense for NAnt build files

 

All,

 

Check out this post for enabling IntelliSense in Visual Studio 2003 for NAnt build files:

 

http://dallas.sark.com/SarkBlog/cboland/archive/2004/09/13/381.aspx

 

 

Craig Boland

Software Architects, Inc.

http://dallas.sark.com/sarkblog/cboland

 



______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the person or organisation to
whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use,
copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please
contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, which could damage your
own computer system. While Marlborough Stirling has taken every reasonable precaution to minimise
this risk, we cannot accept liability for any damage, which you sustain as a result of software
viruses. You should carry out your own virus checking procedure before opening any attachment.


Marlborough Stirling plc, Registered in England and Wales
Registered No. 3008820,
Jessop House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000 Fax: 01242 547100
http://www.marlborough-stirling.com

Reply via email to