添加注释

This commit is contained in:
gongxh
2021-11-08 14:04:59 +08:00
parent 9e594c0b37
commit dc2f149c86
2 changed files with 3 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ namespace NX.ERP.WebAPi
// those comments into the generated docs and UI. You can enable this by providing the path to one or // those comments into the generated docs and UI. You can enable this by providing the path to one or
// more Xml comment files. // more Xml comment files.
// //
// c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory));
// c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory));
// Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types // Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types
@@ -150,7 +150,7 @@ namespace NX.ERP.WebAPi
// enum type. Swashbuckle will honor this change out-of-the-box. However, if you use a different // enum type. Swashbuckle will honor this change out-of-the-box. However, if you use a different
// approach to serialize enums as strings, you can also force Swashbuckle to describe them as strings. // approach to serialize enums as strings, you can also force Swashbuckle to describe them as strings.
// //
//c.DescribeAllEnumsAsStrings(); c.DescribeAllEnumsAsStrings();
// Similar to Schema filters, Swashbuckle also supports Operation and Document filters: // Similar to Schema filters, Swashbuckle also supports Operation and Document filters:
// //

View File

@@ -37,8 +37,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
<DocumentationFile> <DocumentationFile>bin\NX.ERP.WebAPi.xml</DocumentationFile>
</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>