We use documentation Swagger UIto describe our project API. Swagger must read the XML from projectname.xmlto show all the CRUD functions that we have in the project.
Swagger UI
projectname.xml
The problem is that I am switching from Visual Studio to Visual Studio Code, this is not regenerating or modifying an existing XML file from Visual Studio code. Is there a way to create an XML documentation file in Visual Studio Code, for example in Visual Studio Ultimate, as shown in the image below?
In the csproj file for the project, add the following.
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <DocumentationFile>bin\Debug\netcoreapp2.0\TodoApi.xml</DocumentationFile> </PropertyGroup>
Then rebuild your project.
,
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <DocumentationFile>bin\Debug\$(TargetFramework)\$(MSBuildProjectName).xml</DocumentationFile> <NoWarn>1701;1702;1705;1591</NoWarn> </PropertyGroup>
Source: https://habr.com/ru/post/1662099/More articles:SQL Server: finding records with closest date to CurrentDate based on conditions - sql-serverСтрока соединения EF с расширением ASP.NET, когда пользователь входит в систему - asp.netChange connection string dynamically (for each request) on Entity Framework 7 / MVC 6 - asp.net-coreDouble quotes in DB with HTML output violation - phpDynamically change connection string in Asp.Net Core - c #HTML page does not connect to database - javaТип возврата webAPI - json.Net The main core question is asp.net-coreКак использовать API-адрес речи в приложении? - androidТип несоответствия: невозможно преобразовать из String в ListenableFuture - springAll Articles