473,382 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Intelisense Question

Hey Guys,

What I’m trying to do is find out how to put those nifty descriptions in
the intelisense popups.
What I mean is, you know when your using intelisens in VS after you type
the period the list of available methods, properties and objects is listed.
When you hover your mouse over an item it will pop up with the
parameters requires along with a brief description of what it does.
Is there a way for me to code that into my class library, so when I
reference it from another project I can use intelisens this way.

Any help or input would be greatly appreciated

- Adam
Nov 17 '05 #1
7 1473

"Adam" <Ad*****@shaw.ca> wrote in message
news:cqFSe.372158$s54.150520@pd7tw2no...
Hey Guys,

What I’m trying to do is find out how to put those nifty descriptions in
the intelisense popups.
What I mean is, you know when your using intelisens in VS after you type
the period the list of available methods, properties and objects is
listed.
When you hover your mouse over an item it will pop up with the parameters
requires along with a brief description of what it does.
Is there a way for me to code that into my class library, so when I
reference it from another project I can use intelisens this way.

Any help or input would be greatly appreciated

- Adam


Hi Adam,

within the code editor type 3 slashes /// - and a summary template will be
created for you - which you can customise as below -

/// <summary>

/// Starts an Interface

/// </summary>

/// <param name="NicName">Returns the Name of an interface</param>

public void Start(string NicName)

{

Nov 17 '05 #2
Hi James,

First of all I would just like to thank you for your quick reply.

The thing is tho that this does not work for a class library that I
build and a reference to from a different project. I'm not sure if maybe
i'm not doing something right but heres what i tried.

namespace Testing
{
public class Test
{
/// <summary>
/// iunno if this part matters we will see
/// </summary>
/// <param name="something">Testing to see if this works</param>
public int Something(int x,int y)
{
return x + y;
}
}
}

Then i compiled it and added a reference to a windows application.
When im in code view intellisense doesnt show either of the comments.
If someone can see something that im not doing or am doing wrong i would
appreciate your input

James Jenkins wrote:
"Adam" <Ad*****@shaw.ca> wrote in message
news:cqFSe.372158$s54.150520@pd7tw2no...
Hey Guys,

What I’m trying to do is find out how to put those nifty descriptions in
the intelisense popups.
What I mean is, you know when your using intelisens in VS after you type
the period the list of available methods, properties and objects is
listed.
When you hover your mouse over an item it will pop up with the parameters
requires along with a brief description of what it does.
Is there a way for me to code that into my class library, so when I
reference it from another project I can use intelisens this way.

Any help or input would be greatly appreciated

- Adam

Hi Adam,

within the code editor type 3 slashes /// - and a summary template will be
created for you - which you can customise as below -

/// <summary>

/// Starts an Interface

/// </summary>

/// <param name="NicName">Returns the Name of an interface</param>

public void Start(string NicName)

{

Nov 17 '05 #3

"Adam" <Ad*****@shaw.ca> wrote in message
news:qjHSe.373384$s54.347488@pd7tw2no...
Hi James,

First of all I would just like to thank you for your quick reply.

The thing is tho that this does not work for a class library that I build
and a reference to from a different project. I'm not sure if maybe i'm not
doing something right but heres what i tried.

namespace Testing
{
public class Test
{
/// <summary>
/// iunno if this part matters we will see
/// </summary>
/// <param name="something">Testing to see if this works</param>
public int Something(int x,int y)
{
return x + y;
}
}
}

Then i compiled it and added a reference to a windows application.
When im in code view intellisense doesnt show either of the comments.
If someone can see something that im not doing or am doing wrong i would
appreciate your input

James Jenkins wrote:
"Adam" <Ad*****@shaw.ca> wrote in message
news:cqFSe.372158$s54.150520@pd7tw2no...
Hey Guys,

What I’m trying to do is find out how to put those nifty descriptions in
the intelisense popups.
What I mean is, you know when your using intelisens in VS after you type
the period the list of available methods, properties and objects is
listed.
When you hover your mouse over an item it will pop up with the parameters
requires along with a brief description of what it does.
Is there a way for me to code that into my class library, so when I
reference it from another project I can use intelisens this way.

Any help or input would be greatly appreciated

- Adam

Hi Adam,

within the code editor type 3 slashes /// - and a summary template will
be created for you - which you can customise as below -

/// <summary>

/// Starts an Interface

/// </summary>

/// <param name="NicName">Returns the Name of an interface</param>

public void Start(string NicName)

{


hi, - try going to the Project Properties and set the 'Xml Documentation
File' in - Configuration Properties - > Build - > Outputs
Nov 17 '05 #4
I am facing the same issue :(

regards,

Omer kamal
Nov 17 '05 #5
omer kamal wrote:
I am facing the same issue :(

regards,

Omer kamal


To get intellisense working from C# XML Documentation in a separate
assembly, do the following:

1. Go to the Properties dialog for your C# assembly project (the class
library that contain the XML documentation)
2. Go to the section named "Configuration Properties" and "Build"
sub-section
3. Find the value named "XML Documentation File"
4. Type in the name of the XML file you want to generate. This should be
the same name as the compiled assembly file, except it should have a
..xml extension.

After compiling you should have a .xml file alongside your .dll with the
complete XML documentation from your assembly. If you don't have a .xml
file, check your settings once more and if nothing works, you'll just
have to post a new question here.

In the project using the assembly you *might* have to re-add the
reference to the assembly but I doubt it. Reopening the project might be
enough.

--
Lasse Vågsæther Karlsen
http://www.vkarlsen.no/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2
Nov 17 '05 #6
I think your "other" project needs to be able to access the XML doc
file too.
Once the dll and xml files are built, easiest thing to do is to ship
the xml file with the dll (so for example, store the xml file in the
same directory your "other project" is picking the dll up from).

Nov 17 '05 #7
ge*****************@yahoo.co.uk wrote:
I think your "other" project needs to be able to access the XML doc
file too.
Once the dll and xml files are built, easiest thing to do is to ship
the xml file with the dll (so for example, store the xml file in the
same directory your "other project" is picking the dll up from).


Yes, that is correct, if you don't add a reference to the assembly from
the location it was compiled to, remember to copy the .xml file
alongside the .dll wherever you copy the .dll file and it should work.

--
Lasse Vågsæther Karlsen
http://www.vkarlsen.no/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2
Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric | last post by:
Hello, I'm sure there's an easy answer for this but I can't seem to figure out why VS is behaving this way. If I create a new ASP.net project, the codebehind VB file allows me to type in the name...
6
by: Mark | last post by:
Hi, When you view the definitions of standard methods/properties in intelisense as well as the basic definition you get a brief description, for example for string.length you see "Gets the...
2
by: Eric | last post by:
Hello, I'm sure there's an easy answer for this but I can't seem to figure out why VS is behaving this way. If I create a new ASP.net project, the codebehind VB file allows me to type in the name...
2
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I come from VB.net world and I start with C#now due to customer demand :-( I was used undeer VB that as long as you type the AS ( to define the type of your variable) the intelisense...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.