From 0176d66abb234bb2f6c0455b18eab32d022a0c16 Mon Sep 17 00:00:00 2001
From: ShiningRush <277040271@qq.com>
Date: Tue, 30 Jan 2018 19:09:34 +0800
Subject: [PATCH] add the annotation
---
src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs | 2 +-
src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs | 2 +-
.../ServiceCollectionExtensions.cs | 8 ++++++++
tools/needPublishPro.config | 3 ++-
tools/publishToNuget.bat | 4 +---
5 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs b/src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs
index 57a9673..778bdf7 100644
--- a/src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs
+++ b/src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs
@@ -22,7 +22,7 @@ public class ServiceAntModule : Module
///
/// Constructor
///
- /// the assemblies which containg handler, those will be register to container
+ /// the assemblies which containg handlers, those will be registered to container
public ServiceAntModule(params System.Reflection.Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
diff --git a/src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs b/src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs
index 01ac12b..9f6be89 100644
--- a/src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs
+++ b/src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs
@@ -27,7 +27,7 @@ public class ServiceAntInstaller : IWindsorInstaller
///
/// Constructor
///
- /// the assemblies which containg handler, those will be register to container
+ /// the assemblies which containg handlers, those will be registered to container
public ServiceAntInstaller(params Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
diff --git a/src/ServiceAnt.IocInstaller.DotNetCore/ServiceCollectionExtensions.cs b/src/ServiceAnt.IocInstaller.DotNetCore/ServiceCollectionExtensions.cs
index cd47dd6..bb240fb 100644
--- a/src/ServiceAnt.IocInstaller.DotNetCore/ServiceCollectionExtensions.cs
+++ b/src/ServiceAnt.IocInstaller.DotNetCore/ServiceCollectionExtensions.cs
@@ -12,10 +12,18 @@
namespace Microsoft.Extensions.DependencyInjection
{
+ ///
+ /// Extensions for service collention
+ ///
public static class ServiceCollectionExtensions
{
private static System.Reflection.Assembly[] _handlerAssemblies;
+ ///
+ /// Add serviceant to your dotnet core ioc
+ ///
+ ///
+ /// the assemblies which containg handlers, those will be registered to container
public static void AddServiceAnt(this IServiceCollection @this, params Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
diff --git a/tools/needPublishPro.config b/tools/needPublishPro.config
index 3b2ffc3..f7f5871 100644
--- a/tools/needPublishPro.config
+++ b/tools/needPublishPro.config
@@ -1,3 +1,4 @@
ServiceAnt\ServiceAnt.csproj
ServiceAnt.IocInstaller.Autofac\ServiceAnt.IocInstaller.Autofac.csproj
-ServiceAnt.IocInstaller.Castle\ServiceAnt.IocInstaller.Castle.csproj
\ No newline at end of file
+ServiceAnt.IocInstaller.Castle\ServiceAnt.IocInstaller.Castle.csproj
+ServiceAnt.IocInstaller.DotNetCore\ServiceAnt.IocInstaller.DotNetCore.csproj
\ No newline at end of file
diff --git a/tools/publishToNuget.bat b/tools/publishToNuget.bat
index 187076e..b69f3e4 100644
--- a/tools/publishToNuget.bat
+++ b/tools/publishToNuget.bat
@@ -16,10 +16,8 @@ dotnet msbuild ..\src\!projPath_%userInput%! /t:pack /p:Configuration=Release /p
rem %nugetexe% pack ..\src\!projPath_%userInput%! -Build -Properties Configuration=Release -OutputDirectory .\nupkg -IncludeReferencedProjects -Symbols
move ..\src\!projPath_%userInput%!\..\bin\Release\*.nupkg .\nupkg\
-
-rem %nugetexe% push .\*.nupkg -Source https://www.nuget.org/api/v2/package 4917e7f9-0370-40c2-8074-f4f23b85ef41
rem del /q /f .\nupkg\*.nupkg
-%nugetexe% push .\nupkg\*.nupkg -Source http://192.168.19.88:1024/nuget clear
+rem %nugetexe% push .\nupkg\*.nupkg -Source http://192.168.19.88:1024/nuget clear
:end
echo 上传packge完成,输入任意键继续