增加引入包发布说明
This commit is contained in:
parent
3384b8e35a
commit
203d3a0dea
22
README.md
22
README.md
|
@ -1,5 +1,27 @@
|
|||
## Falcon.SugarApi
|
||||
|
||||
### 引入nuget包可能默认不会包含Falcon.SugarApi.xml文件,但是没有这个文件swagger会少很多说明,也可能会报错
|
||||
将一下代码包含在.csproj项目文件中可以复制包中的xml文件到输出目录和发布目录。
|
||||
```xml
|
||||
<Target Name="CopyReferenceFiles" BeforeTargets="Build">
|
||||
<ItemGroup>
|
||||
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<Message Text="Copying reference files to $(OutputPath)" Importance="High" />
|
||||
<Copy SourceFiles="@(XmlReferenceFiles)" DestinationFolder="$(OutputPath)" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="CopyReferenceFilesToPublish" BeforeTargets="PrepareForPublish">
|
||||
<ItemGroup>
|
||||
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<Message Text="Copying reference files to $(OutputPath)" Importance="High" />
|
||||
<Copy SourceFiles="@(XmlReferenceFiles)" DestinationFolder="$(PublishDir)" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
```
|
||||
|
||||
### WebApi扩展模块 [进入](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/ApiDefinistions)
|
||||
> `ApiControllerBase`是所有webapi基类,实现数据库、log、异常等基础功能。
|
||||
> `ApiBaseOptionController<>`带有基本操作方法的webapi基类,除了`ApiControllerBase`功能外还提供基础增删改查功能。
|
||||
|
|
Loading…
Reference in New Issue
Block a user