更新readme说明
This commit is contained in:
parent
203d3a0dea
commit
cca4386410
34
README.md
34
README.md
|
@ -1,25 +1,23 @@
|
||||||
## Falcon.SugarApi
|
## Falcon.SugarApi
|
||||||
|
|
||||||
### 引入nuget包可能默认不会包含Falcon.SugarApi.xml文件,但是没有这个文件swagger会少很多说明,也可能会报错
|
### 引入包说明
|
||||||
|
引入nuget包可能默认不会包含Falcon.SugarApi.xml文件,但是没有这个文件swagger会少很多说明,也可能会报错。
|
||||||
将一下代码包含在.csproj项目文件中可以复制包中的xml文件到输出目录和发布目录。
|
将一下代码包含在.csproj项目文件中可以复制包中的xml文件到输出目录和发布目录。
|
||||||
```xml
|
```xml
|
||||||
<Target Name="CopyReferenceFiles" BeforeTargets="Build">
|
<Target Name="CopyReferenceFiles" BeforeTargets="Build">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Message Text="Copying reference files to $(OutputPath)" Importance="High" />
|
||||||
<Message Text="Copying reference files to $(OutputPath)" Importance="High" />
|
<Copy SourceFiles="@(XmlReferenceFiles)" DestinationFolder="$(OutputPath)" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" />
|
||||||
<Copy SourceFiles="@(XmlReferenceFiles)" DestinationFolder="$(OutputPath)" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" />
|
</Target>
|
||||||
</Target>
|
<Target Name="CopyReferenceFilesToPublish" BeforeTargets="PrepareForPublish">
|
||||||
|
<ItemGroup>
|
||||||
<Target Name="CopyReferenceFilesToPublish" BeforeTargets="PrepareForPublish">
|
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
||||||
<ItemGroup>
|
</ItemGroup>
|
||||||
<XmlReferenceFiles Condition="Exists('$(OutputPath)%(Filename).dll')" Include="%(Reference.RelativeDir)%(Reference.Filename).xml" />
|
<Message Text="Copying reference files to $(OutputPath)" Importance="High" />
|
||||||
</ItemGroup>
|
<Copy SourceFiles="@(XmlReferenceFiles)" DestinationFolder="$(PublishDir)" Condition="Exists('%(RootDir)%(Directory)%(Filename)%(Extension)')" />
|
||||||
|
</Target>
|
||||||
<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)
|
### WebApi扩展模块 [进入](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/ApiDefinistions)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user