xml-documentation

using see cref with < > characters in XML Documentation? [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-01 14:32:47
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to reference generic classes and methods in xml documentation i have been using the see cref tag and it works great but now i need to include a generic list of string[] in the see cref but the documentation doesn't correctly render. /// <returns>A <see cref="List<string[]>" /> that ....... I presume its something to do with the < and > and maybe [] Is this allowed, is there a work around? 回答1: /// <returns>A

Make svcutil pick up documentation from C# files?

天涯浪子 提交于 2019-12-01 05:40:12
问题 Folks, I'm creating a new WCF Service and started with my Service interface. Looks something like: public interface ISomethingService { /// <summary> /// some description /// </summary> /// <version>2.13.0</version> /// <copyright>2009 by myself</copyright> /// <author>Marc Scheuner</author> /// <param name="request">The request object</param> [OperationContract] SomethingResponse GetList(SomethingRequest request); } Now, I also created some data contracts in another file describing the

Visual Studio XML summary comment on single line

≡放荡痞女 提交于 2019-11-30 17:46:57
In Visual Studio, how do I change the default XML summary comment snippet from three lines to one line? Currently it provides this snippet when I type /// : /// <summary> /// /// </summary> I would like this shorter snippet: ///<summary></summary> My summaries are often brief and the extra 2 line are unnecessary. Is there a configuration setting for this or some customizable code/custom addon to fix this. This is an older question, but I liked Jason Williams's suggestion of creating a snippet for this, so I did. Not very complicated, but copy-and-paste is even easier :) <?xml version="1.0"

Show <returns> xml tag into visual studio intellisense

我们两清 提交于 2019-11-30 16:58:22
I added the <returns> xml tag to some of my methods but I can't see its content in IntelliSense. Here is my code: /// <summary> /// we all live in a yellow summary /// </summary> /// <returns>what it returns</returns> public int MyMethod() { .... } Is there any way to show this content? This currently does not work (Visual Studio 2017), and is an open issue: https://github.com/dotnet/roslyn/issues/31618 One way to make it work is to install the ReSharper Visual Studio plugin (but this is paid-for). Sometimes it takes time for the IntelliSense to comprehend your code. To verify that the tag is

Visual Studio XML summary comment on single line

六眼飞鱼酱① 提交于 2019-11-30 16:44:41
问题 In Visual Studio, how do I change the default XML summary comment snippet from three lines to one line? Currently it provides this snippet when I type /// : /// <summary> /// /// </summary> I would like this shorter snippet: ///<summary></summary> My summaries are often brief and the extra 2 line are unnecessary. Is there a configuration setting for this or some customizable code/custom addon to fix this. 回答1: This is an older question, but I liked Jason Williams's suggestion of creating a

Extra blank line displayed from <para></para> and <para /> in VS2015CE, can't get rid of it

别说谁变了你拦得住时间么 提交于 2019-11-30 12:31:28
When I use <para></para> tag in documentation (in form of <para /> as well) in Visual Studio 2015 Community Edition , I'm getting an extra blank line displayed in IntelliSense tooltip (the one which appears when typing in member name). I've tried many variants, including but not limited to listed in the following example: public interface IFooBar { ///<summary>foo<para>bar</para><para>baz</para></summary> void Foo(); ///<summary>foo ///<para>bar</para> ///<para>baz</para> ///</summary> void Bar(); ///<summary>foo<para />bar<para />baz</summary> void Baz(); ///<summary>foo<para /> ///bar ///

How do I export the code documentation in C# / VisualStudio 2008?

左心房为你撑大大i 提交于 2019-11-30 06:25:45
I have always made a point of writing nice code comments for classes and methods with the C# xml syntax. I always expected to easily be able to export them later on. Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go Menu->Build->Build Code Documentation , but there is no option to do that, there. Actually it's in the project properties. Build tab, Output section, XML documentation file, and enter the filename. It will be built on every build of the project. After that you can build the actual help with Sandcastle . You could try

Extra blank line displayed from <para></para> and <para /> in VS2015CE, can't get rid of it

允我心安 提交于 2019-11-29 17:54:40
问题 When I use <para></para> tag in documentation (in form of <para /> as well) in Visual Studio 2015 Community Edition , I'm getting an extra blank line displayed in IntelliSense tooltip (the one which appears when typing in member name). I've tried many variants, including but not limited to listed in the following example: public interface IFooBar { ///<summary>foo<para>bar</para><para>baz</para></summary> void Foo(); ///<summary>foo ///<para>bar</para> ///<para>baz</para> ///</summary> void

How can I disable a specific warning for a C# project in VS2012?

醉酒当歌 提交于 2019-11-29 13:26:15
I am trying to generate partial XML documentation during my build process for a C# project in VS2012. When I check the XML documentation file option in Project->Properties->Build, I get a build warning for each public member that lacks documentation. Since we compile with warnings as errors, this blocks the build. This question suggests getting past this by disabling certain warnings, but I can't figure out how to do that in VS2012! The MSFT documentation here only goes up to VS2010 and only covers VB. How can I disable these warnings at the project level in C#/VS2012? The warning you're

Can I propagate XML documentation from an interface to its implementation?

非 Y 不嫁゛ 提交于 2019-11-29 13:12:44
I need to propagate XML documentation from a base class to derivative(s) or from an interface to implementation(s). Can I do this using Resharper? Jura Gorohovsky Yes you can. If you're yet to implement/override members, then in a derived class or interface implementation, click Alt + Ins , choose "Overriding members" or "Implement missing members". In the wizard that displays afterwards, choose members to implement/override, and make sure to select "Copy XML documentation". Alternatively, if you already have an overridden or implemented member in place, press Alt + Enter on the overridden