Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

can not use Swagger Show Summaries #12117


User avatar
0
devteambiz created

when i set this config in appsettings.json "Swagger": { "ShowSummaries": true } I open web path "/swagger/index.html" I found this error,"FileNotFoundException: Could not find file 'C:\Works\web_source\sdb\SuperApp\src\SuperApp.Web.Mvc\bin\Debug\net8.0\SuperApp.Web.Mvc.xml'" How to gen *.Web.Mvc.xml ? thank you.


2 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi

    The default conditions must be changed correctly to generate the documentation file.

    Here, *.Mvc.csproj, *.Application.csproj and *.Web.Core.csproj should also be marked as True. After opening the files with .csproj extension, you can change them to True as shown in the screenshot below.

    You need to make this change in the .csproj extension files of 3 projects.

  • User Avatar
    0
    devteambiz created

    thank you.