Solved

visual studio 2013 ultimate triple slash for xml comments doesn't work

Posted on 2014-10-18
9
830 Views
Last Modified: 2014-10-25
I have just installed visual studio 2013 ulitimate on my laptop.  I have found that the /// for xml comments won't work.

I found the tools->options->text editor->c#->advanced->generate xml comments for /// option is checked.  Don't
know what else to look for, but I really need this option.  help!!
0
Comment
Question by:dhenderson12
9 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 40389731
Try to enter /// just before a method declaration or a type declaration. This is an example using visual basic. in C# use /// instead of '''
Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs)

    End Sub
End Class

Open in new window


''' <summary>
''' 
''' </summary>
''' <remarks></remarks>
Public Class Form1

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <param name="sender"></param>
    ''' <param name="e"></param>
    ''' <remarks></remarks>
    Private Sub Form1_Load(sender As Object, e As EventArgs)

    End Sub
End Class

Open in new window

0
 

Author Comment

by:dhenderson12
ID: 40390125
thanks for the reply.  I know how to use it;  I use it in my code all the time, in other installations of visual studio.  In this particular installation it does not work.  All the options are checked but typing /// does nothing!
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 167 total points
ID: 40390133
have you tried to repair your installation?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:dhenderson12
ID: 40390343
yes.  repaired, un-installed, and re-installed.  it's a new laptop built from a disk image;  we have several other laptops using the same image that don't have this problem.  I may need to get the ma chine re-imaged, but I was looking at other options first.
0
 
LVL 30

Assisted Solution

by:hnasr
hnasr earned 166 total points
ID: 40390801
" In this particular installation it does not work."

Create a new small application in two installations.

App1 on installation1
App2 on installation2
Check
Swap Apps between installations.
Check
Comment back on the findings.
0
 

Author Comment

by:dhenderson12
ID: 40391985
hnasr,  the problem is  not about the application!  I working on existing apps.
0
 
LVL 30

Expert Comment

by:hnasr
ID: 40392128
What I wanted after checking, is to upload that demo applications if:
App1 and App2 work on installation1, but not on Installation2.

Otherwise,
Have an image of existing machine.
Then have the machine restored from a previous image.
0
 
LVL 33

Accepted Solution

by:
sarabande earned 167 total points
ID: 40392622
not only the options need to be enabled but also the project build properties such that the /doc compiler option was enabled. you may object that the project works with other installations, but you also need to make sure that the same build configuration is used and that intellisense is working correctly beside of the triple slash..

see http://msdn.microsoft.com/en-us/library/vstudio/3260k4x7(v=vs.120).aspx

so, check the compiler commandline whether the /doc option is used for compilation. also make sure that the intellisense is working correctly with your environment. that means if you add a valid xml documentation file to your source, intellisense would use the file for info on hovering. so a possible cause why intellisense is not correctly working is that there is a corrupt xml file which could not processed by intellisense and makes intellisense stop.  

to be absolutely sure that the triple slash is generally not working, you should create a new project and check the feature with that.

Sara
0
 

Author Comment

by:dhenderson12
ID: 40404106
well, it turns out that the laptop had not had any of the windows updates installed!  after installing the updates (232 of them!) everything works  fine.  thanks for your comments.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question