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. 8 1175
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: 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: 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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |