Files
AspNetCore.Identity.MongoDb…/package.ps1
T
David Barker 02c6a1c934 Update nuspec package for CI/CD
Added package.ps1 file for building, testing and packaging the library
2020-01-24 12:58:47 +08:00

10 lines
431 B
PowerShell

$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