I am interested how can I create XML documentation file in VS2015 with ASP.NET MVC6 project? In older project types there was a checkbox called XML documentation file when you do right click on Properties -> Build.
1 Answer
You don't need to do anything special, it generates it by default and puts it inside the NuGet package for you.
Refer to here if you want to see where exactly this happens.
6 Comments
Victor Hurdugaci
Did we just post the answers at the same time? :)
tugberk
@VictorHurdugaci I have beaten you by 1 min :D
Victor Hurdugaci
Ok, then your answer stays. I'll remove mine which said "XML documentation should be emitted by default. The documentation should be in
<assembly name>.xml in the same folder as the output. The code is herezoranpro
So is there a way that I can get the XML path while I am running the application on IIS Express?
zoranpro
When I do publish and if I don't select
Precompile during publishing I will not get that .xml file. Same thing when I do build, if I do not select Produce outputs on build I will not get that XML. I would like to access that file from the code and use it for Swashbuckle. |