From 02c6a1c934fbd8bc4d43d50496c7ff26f672dab7 Mon Sep 17 00:00:00 2001 From: David Barker Date: Fri, 24 Jan 2020 12:58:47 +0800 Subject: [PATCH] Update nuspec package for CI/CD Added package.ps1 file for building, testing and packaging the library --- package.ps1 | 10 ++++++++++ src/AspNetCore.Identity.MongoDbCore.nuspec | 22 +++++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 package.ps1 diff --git a/package.ps1 b/package.ps1 new file mode 100644 index 0000000..6c6c44e --- /dev/null +++ b/package.ps1 @@ -0,0 +1,10 @@ + +$project="./src/AspNetCore.Identity.MongoDbCore.csproj" +$testProject="./test/AspNetCore.Identity.MongoDbCore.IntegrationTests/AspNetCore.Identity.MongoDbCore.IntegrationTests.csproj" +$configuration="Release" +$nuspecFile="AspnetCore.Identity.MongoDbCore.nuspec" +$output="./nuget" + +dotnet build +dotnet test $testProject +dotnet pack --no-restore --no-build $project --configuration $configuration -p:NuspecFile=$nuspecFile -o $output \ No newline at end of file diff --git a/src/AspNetCore.Identity.MongoDbCore.nuspec b/src/AspNetCore.Identity.MongoDbCore.nuspec index 91c296c..63916fc 100644 --- a/src/AspNetCore.Identity.MongoDbCore.nuspec +++ b/src/AspNetCore.Identity.MongoDbCore.nuspec @@ -2,11 +2,11 @@ AspNetCore.Identity.MongoDbCore - 1.1.1 + 2.1.0 AspNetCore.Identity.MongoDbCore Alexandre Spieser Alexandre Spieser - http://www.opensource.org/licenses/mit-license.php + MIT https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore false A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.0. @@ -14,13 +14,21 @@ Copyright 2018 (c) Alexandre Spieser. All rights reserved. aspnetcore mongo mongodb identity membership - - - - + + + + + + + + + + + + - + \ No newline at end of file