aboutsummaryrefslogtreecommitdiff
path: root/csharp/compatibility_tests/v3.0.0/test.sh
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2017-05-04 08:51:46 +0100
committerJon Skeet <skeet@pobox.com>2017-05-24 09:07:33 +0100
commitf26e8c2ae0a490399f7e77d96193f2851b185b56 (patch)
tree2d3f4f182126b69148d55a2fd306a4842c64161f /csharp/compatibility_tests/v3.0.0/test.sh
parent40da1ed572d60e9c7cc2fe1ca4175e30682f5a9d (diff)
downloadprotobuf-f26e8c2ae0a490399f7e77d96193f2851b185b56.tar.gz
protobuf-f26e8c2ae0a490399f7e77d96193f2851b185b56.tar.bz2
protobuf-f26e8c2ae0a490399f7e77d96193f2851b185b56.zip
Convert C# projects to MSBuild (csproj) format
This has one important packaging change: the netstandard version now depends (implicitly) on netstandard1.6.1 rather than on individual packages. This is the preferred style of dependency, and shouldn't affect any users - see http://stackoverflow.com/questions/42946951 for details. The tests are still NUnit, but NUnit doesn't support "dotnet test" yet; the test project is now an executable using NUnitLite. (When NUnit supports dotnet test, we can adapt to it.) Note that the project will now only work in Visual Studio 2017 (and Visual Studio Code, and from the command line with the .NET Core 1.0.0 SDK); Visual Studio 2015 does *not* support this project file format.
Diffstat (limited to 'csharp/compatibility_tests/v3.0.0/test.sh')
-rwxr-xr-xcsharp/compatibility_tests/v3.0.0/test.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/csharp/compatibility_tests/v3.0.0/test.sh b/csharp/compatibility_tests/v3.0.0/test.sh
index bb04fc2c..54d28dfc 100755
--- a/csharp/compatibility_tests/v3.0.0/test.sh
+++ b/csharp/compatibility_tests/v3.0.0/test.sh
@@ -18,8 +18,11 @@ function run_test() {
protos/src/google/protobuf/map_unittest_proto3.proto
# Build and test.
- dotnet build -c release src/Google.Protobuf src/Google.Protobuf.Test
- dotnet test -c release -f netcoreapp1.0 src/Google.Protobuf.Test
+ dotnet restore src/Google.Protobuf/Google.Protobuf.csproj
+ dotnet restore src/Google.Protobuf.Test/Google.Protobuf.Test.csproj
+ dotnet build -c Release src/Google.Protobuf/Google.Protobuf.csproj
+ dotnet build -c Release src/Google.Protobuf.Test/Google.Protobuf.Test.csproj
+ dotnet run -c Release -f netcoreapp1.0 -p src/Google.Protobuf.Test/Google.Protobuf.Test.csproj
}
set -ex
@@ -72,7 +75,6 @@ chmod +x old_protoc
# Copy the new runtime and keys.
cp ../../src/Google.Protobuf src/Google.Protobuf -r
cp ../../keys . -r
-dotnet restore
# Test A.1:
# proto set 1: use old version