-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML Comments section is not working as described for ASP.NET Core 1.1 #6686
Comments
@Structed Thank you for pointing this out. You're correct that the |
Addresses #6686 (still need to address deployment concerns) Addresses #5495 **Changes** - Update 2.1 sample app from RC1 to RTM - Simplify sample app download link markup [Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-1.1&branch=pr-en-us-6761#add-and-configure-swagger-middleware)
Thanks, @scottaddie! Please also have a look at the second thing. Since you're describing the use of XML Comments, you should go all the way including that "hack" to add a copy target to the |
@Structed I plan to address your point about app publishing in the next week or so. This issue won't be closed until that's completed. |
@rynowak Please review Shayne's blog post (linked above). Would you like this publish detail included in the doc? |
/cc @vijayrkn - this is publish related - who should review? |
@vijayrkn What am I supposed to review here? |
https://github.com/spboyer/copydocfile-example Is this the right extensibility for publish? |
The solution in the blog post is no longer needed with newer SDKs. Rather than working around the issue when using an old SDK, I would recommend that people use the latest SDK (they can still target .NET Core 1.x with it). If we were going to put a workaround in the docs, I would suggest the one here: dotnet/sdk#795 (comment) |
@dsplaisted Was this issue fixed in 2.1.300? I'd like to identify the SDK version that's needed. |
@scottaddie According to @dasMulli, it was fixed in 2.0.0, and there was a VB-specific issue with it that was fixed in 2.1.300. |
You can slim the csproj sample down to <PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup> Reasons:
|
First, the code to enable the loading of the XML file in the Startup.cs is incorrect for ASP.NET Core 1.1. The Correct lines are as follows:
Second, this will not work at all if the app was published. For this, you have to add a Target to the csproj file. See example by @spboyer here: https://github.com/spboyer/copydocfile-example
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: