diff options
author | Jon Skeet <skeet@pobox.com> | 2016-07-14 22:01:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-14 22:01:47 +0100 |
commit | 10a8fb4e73b3dada58123aeabc393288ac791dc8 (patch) | |
tree | 54b058cfaff68b49a20aa8dfaec297faaddda109 /csharp/buildall.sh | |
parent | 042993b3dd8c52f979870c91ea7fcbcf0dcf94a0 (diff) | |
download | protobuf-10a8fb4e73b3dada58123aeabc393288ac791dc8.tar.gz protobuf-10a8fb4e73b3dada58123aeabc393288ac791dc8.tar.bz2 protobuf-10a8fb4e73b3dada58123aeabc393288ac791dc8.zip |
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform (#1727)
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform
This also updates the version number to 3.0.0-beta4
Diffstat (limited to 'csharp/buildall.sh')
-rwxr-xr-x | csharp/buildall.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/csharp/buildall.sh b/csharp/buildall.sh index 45af705f..cab32229 100755 --- a/csharp/buildall.sh +++ b/csharp/buildall.sh @@ -1,17 +1,16 @@ #!/bin/bash -# Use mono to build solution and run all tests. -# Adjust these to reflect the location of nunit-console in your system. -NUNIT_CONSOLE=nunit-console - -# The rest you can leave intact CONFIG=Release SRC=$(dirname $0)/src set -ex -echo Building the solution. -xbuild /p:Configuration=$CONFIG $SRC/Google.Protobuf.sln +echo Building relevant projects. +dotnet build -c $CONFIG $SRC/Google.Protobuf $SRC/Google.Protobuf.Test $SRC/Google.Protobuf.Conformance echo Running tests. -$NUNIT_CONSOLE $SRC/Google.Protobuf.Test/bin/$CONFIG/Google.Protobuf.Test.dll +# Only test netcoreapp1.0, which uses the .NET Core runtime. +# If we want to test the .NET 4.5 version separately, we could +# run Mono explicitly. However, we don't have any differences between +# the .NET 4.5 and netstandard1.0 assemblies. +dotnet test -c $CONFIG -f netcoreapp1.0 $SRC/Google.Protobuf.Test |