Hi,
I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary>
/// testing
/// </summary>
/// <param name="stem">will this work?</param>
public void test(string stem)
{
}
If I compile/build this code, and try to call it, the summary doesn't appear
in the intellisense. Any idea why?
Thanks very much. 9 1416
Verify that you are moving the XML file created along with your assembly (if
you are copying myassembly.dll to where you're referencing it, make sure
you've also copied myassembly.xml )
"suzy" <me@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary> /// testing /// </summary> /// <param name="stem">will this work?</param> public void test(string stem) {
}
If I compile/build this code, and try to call it, the summary doesn't
appear in the intellisense. Any idea why?
Thanks very much.
suzy <me@nospam.com> wrote: I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary> /// testing /// </summary> /// <param name="stem">will this work?</param> public void test(string stem) {
}
If I compile/build this code, and try to call it, the summary doesn't appear in the intellisense. Any idea why?
Do you mean you're using it from a different solution? If so, you need
to build the XML documentation file and keep that with the assembly.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
The XML file that is generated is in the bin\Debug folder.
I haven't moved the assembly anywhere, I am trying to get it working in
design time. Still no joy. :(
I am a newbie by the way. :)
"Philip Rieck" <st***@mckraken.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Verify that you are moving the XML file created along with your assembly
(if you are copying myassembly.dll to where you're referencing it, make sure you've also copied myassembly.xml )
"suzy" <me@nospam.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary> /// testing /// </summary> /// <param name="stem">will this work?</param> public void test(string stem) {
}
If I compile/build this code, and try to call it, the summary doesn't appear in the intellisense. Any idea why?
Thanks very much.
OK I must be really missing something here.
Jon,
yes you are right, i am accessing this code from another solution. I tried
creating a documentation file (which created lots of html files etc in a
folder called "CodeCommentReport". There is no xml file here though).
I have also tried copying the doc.xml file that was created when I build the
solution into the same dir as my code files and that didn't work either.
What do I do from here, because it's still now working.
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... suzy <me@nospam.com> wrote: I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary> /// testing /// </summary> /// <param name="stem">will this work?</param> public void test(string stem) {
}
If I compile/build this code, and try to call it, the summary doesn't
appear in the intellisense. Any idea why?
Do you mean you're using it from a different solution? If so, you need to build the XML documentation file and keep that with the assembly.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
suzy <me@nospam.com> wrote: yes you are right, i am accessing this code from another solution. I tried creating a documentation file (which created lots of html files etc in a folder called "CodeCommentReport". There is no xml file here though).
Nope, you don't want to do that. Intellisense is looking for the XML
file, not HTML.
I have also tried copying the doc.xml file that was created when I build the solution into the same dir as my code files and that didn't work either.
What do I do from here, because it's still now working.
You should name the XML file the same as your assembly, but with .xml
on the end instead of .dll. For instance:
MyCompany.Foo.dll and MyCompany.Foo.xml
If they're both in the same directory with the naming scheme above,
VS.NET should pick them up.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
"suzy" <me@nospam.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl... OK I must be really missing something here.
Jon,
yes you are right, i am accessing this code from another solution. I
tried creating a documentation file (which created lots of html files etc in a folder called "CodeCommentReport". There is no xml file here though).
I have also tried copying the doc.xml file that was created when I build
the solution into the same dir as my code files and that didn't work either.
What do I do from here, because it's still now working.
Just to go over the steps, these work for us:
1) in the project properties, write a filename for XML documentation
(Configuration Properties | Build)
the default name seems to be: same directory/filename as dll,
except a ".xml" extension instead of ".dll"
2) REbuild the project to generate/update this XML file,
no need to generate the documentation html-files.
(If you just "build" the project then the xml-file is not updated.)
3) reference this dll in the other project, xml (and pdb) files
are automatically copied
Hans Kesting
Great Hans,
Thanks so much, that works (finally!!!)
:)
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:uW**************@tk2msftngp13.phx.gbl... "suzy" <me@nospam.com> wrote in message news:O1**************@TK2MSFTNGP11.phx.gbl... OK I must be really missing something here.
Jon,
yes you are right, i am accessing this code from another solution. I tried creating a documentation file (which created lots of html files etc in a folder called "CodeCommentReport". There is no xml file here though).
I have also tried copying the doc.xml file that was created when I build the solution into the same dir as my code files and that didn't work either.
What do I do from here, because it's still now working.
Just to go over the steps, these work for us: 1) in the project properties, write a filename for XML documentation (Configuration Properties | Build) the default name seems to be: same directory/filename as dll, except a ".xml" extension instead of ".dll" 2) REbuild the project to generate/update this XML file, no need to generate the documentation html-files. (If you just "build" the project then the xml-file is not updated.) 3) reference this dll in the other project, xml (and pdb) files are automatically copied
Hans Kesting
One final point:
After you have changed & recompiled your library project/solution,
you need to recompile the project (solution) you are using it in, so the
new dll + xml are picked up.
Hans Kesting
"suzy" <me@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Great Hans,
Thanks so much, that works (finally!!!)
:)
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message news:uW**************@tk2msftngp13.phx.gbl...
Just to go over the steps, these work for us: 1) in the project properties, write a filename for XML documentation (Configuration Properties | Build) the default name seems to be: same directory/filename as dll, except a ".xml" extension instead of ".dll" 2) REbuild the project to generate/update this XML file, no need to generate the documentation html-files. (If you just "build" the project then the xml-file is not updated.) 3) reference this dll in the other project, xml (and pdb) files are automatically copied
Hans Kesting
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jacques Koorts |
last post by:
Hi
I really don't know anymore how to solve this problem. I bought .NET
thinking i can debug my way out of it but still no cigar.
This very simple piece of code does not work:
Now here some...
|
by: suzy |
last post by:
Hi,
I am wondering why my comments do not appear in intellisense.
I have written the following method:
/// <summary>
/// testing
/// </summary>
/// <param name="stem">will this...
|
by: lawrence |
last post by:
The following function correctly makes everything invisible but then
fails to turn the one chosen DIV back to visible. I imagine I'm
getting the syntax of the variable wrong? I've tried this with...
|
by: Hendrik Wendler |
last post by:
Hi everybody,
this may be a stupid question:
i want to strip comments from a .cpp
file.
cpp comments look like:
// (two slashes) .... comment until newline -->|
|
by: Timex |
last post by:
I want to delete all comments in .c file.
Size of .c file is very big.
Any good idea to do this?
Please show me example code.
|
by: LP |
last post by:
I am using (trying to) CR version XI, cascading parameters feature works it
asks user to enter params. But if page is resubmitted. It prompts for params
again. I did set...
|
by: Edward Elliott |
last post by:
At the risk of flogging a dead horse, I'm wondering why Python doesn't have
any multiline comments. One can abuse triple-quotes for that purpose, but
that's obviously not what it's for and doesn't...
|
by: gerbski |
last post by:
Hi all,
I am relatively new to ADO, but up to now I got things working the way
I wanted. But now I've run into somethng really annoying.
I am working in MS Access. I am using an Access...
|
by: John Nagle |
last post by:
The syntax that browsers understand as HTML comments is much less
restrictive than what BeautifulSoup understands. I keep running into
sites with formally incorrect HTML comments which are parsed...
|
by: Medvedev |
last post by:
FILE *a,*b;
int z;
char str1;
char str2;
a= fopen(argv,"rb"); //Both files are EXE's
b= fopen(argv,"rb+");
z= fread(str1,1,1,a);
if (z !=1)
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |