增加发布脚本。删除不必要的引用,修改说明

This commit is contained in:
falcon 2023-01-10 16:01:46 +08:00
parent 3de278e6d9
commit 3384b8e35a
3 changed files with 10 additions and 4 deletions

View File

@ -6,8 +6,9 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Description>Falcon.SugarApi基础定义</Description> <Description>Falcon.SugarApi基础定义</Description>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.0</Version> <Version>1.0.4</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -15,8 +16,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<!--<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />-->
<PackageReference Include="JWT" Version="9.0.3" />
<PackageReference Include="SqlSugarCore" Version="5.1.3.27" /> <PackageReference Include="SqlSugarCore" Version="5.1.3.27" />
<PackageReference Include="SugarRedis" Version="1.3.0" /> <PackageReference Include="SugarRedis" Version="1.3.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.4.0" /> <PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.4.0" />
@ -35,4 +34,8 @@
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.4" /> <PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.4" />
</ItemGroup> </ItemGroup>
<!--<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="call $(SolutionDir)\Script\PushNuget.bat" />
</Target>-->
</Project> </Project>

View File

@ -12,7 +12,7 @@ namespace Falcon.SugarApi.FalconClaim
public static class IServiceCollectionExtend public static class IServiceCollectionExtend
{ {
/// <summary> /// <summary>
/// 增加FalconClaim相关服务 /// 增加FalconClaim相关服务。包括ITokenBuilter和FalconAuthenticationHandler
/// </summary> /// </summary>
public static IServiceCollection AddFalconClaim(this IServiceCollection services, Action<FalconClaimOption>? optionBuilder = null) { public static IServiceCollection AddFalconClaim(this IServiceCollection services, Action<FalconClaimOption>? optionBuilder = null) {
var option = new FalconClaimOption(); var option = new FalconClaimOption();

3
Script/PushNuget.bat Normal file
View File

@ -0,0 +1,3 @@
@echo nuget push to source gitea!....
dotnet nuget push --source gitea --skip-duplicate ..\Falcon.SugarApi\bin\Release\Falcon.SugarApi.*.nupkg
pause