Commit 06cd0051 authored by Nick Craver's avatar Nick Craver

Update build scripts to pack for us

parent ad5378fc
...@@ -37,16 +37,10 @@ if ($LASTEXITCODE -ne 0) ...@@ -37,16 +37,10 @@ if ($LASTEXITCODE -ne 0)
throw "dotnet restore failed with exit code $LASTEXITCODE" throw "dotnet restore failed with exit code $LASTEXITCODE"
} }
& $dotnet pack "Dapper" --configuration Release --output "artifacts\packages"
& $dotnet pack "Dapper.Contrib" --configuration Release --output "artifacts\packages"
# Build all # Build all
# Note the exclude: https://github.com/dotnet/cli/issues/1342 dir "Dapper*" | where {$_.PsIsContainer} |
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.EntityFramework.StrongName" } |
foreach { foreach {
pushd "$_" & $dotnet build "$_"
& $dotnet build
popd
} }
# Run tests # Run tests
dir "*.Tests*" | where {$_.PsIsContainer} | dir "*.Tests*" | where {$_.PsIsContainer} |
...@@ -55,6 +49,11 @@ foreach { ...@@ -55,6 +49,11 @@ foreach {
& $dotnet test & $dotnet test
popd popd
} }
# Package all
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.Tests*" } |
foreach {
& $dotnet pack "$_" -c Release -o .\.nupkg\
}
ls */*/project.json | foreach { echo $_.FullName} | ls */*/project.json | foreach { echo $_.FullName} |
foreach { foreach {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment