Update nuspec package for CI/CD

Added package.ps1 file for building, testing and packaging the library
This commit is contained in:
David Barker
2020-01-24 12:58:47 +08:00
parent 80b35e3baf
commit 02c6a1c934
2 changed files with 25 additions and 7 deletions
+10
View File
@@ -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