diff --git a/csharp/BUILD.bazel b/csharp/BUILD.bazel index 2af7d067af..bcbfd7db73 100644 --- a/csharp/BUILD.bazel +++ b/csharp/BUILD.bazel @@ -73,7 +73,7 @@ inline_sh_test( pushd `dirname $(location src/Google.Protobuf.sln)`/.. dotnet restore src/Google.Protobuf.sln dotnet build -c Release src/Google.Protobuf.sln - dotnet test -c Release -f netcoreapp3.1 src/Google.Protobuf.Test/Google.Protobuf.Test.csproj + dotnet test -c Release -f net6.0 src/Google.Protobuf.Test/Google.Protobuf.Test.csproj popd """, ) diff --git a/csharp/src/Google.Protobuf.Conformance/BUILD.bazel b/csharp/src/Google.Protobuf.Conformance/BUILD.bazel index 0b5e2c8f83..f792024ffa 100644 --- a/csharp/src/Google.Protobuf.Conformance/BUILD.bazel +++ b/csharp/src/Google.Protobuf.Conformance/BUILD.bazel @@ -61,7 +61,7 @@ genrule( SRCDIR=$$(dirname $(location :Program.cs)) cp $(location //conformance:conformance_csharp_proto) $$SRCDIR DOTNET_CLI_HOME=/tmp ./$(location :build_conformance_test) - cp -r $$SRCDIR/bin/Release/netcoreapp3.1/* $(RULEDIR) + cp -r $$SRCDIR/bin/Release/net6.0/* $(RULEDIR) """, )