diff --git a/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/netstandard1.3/Protobuf.MSBuild.dll b/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/netstandard1.3/Protobuf.MSBuild.dll new file mode 100644 index 00000000000..6f584a9a2e8 Binary files /dev/null and b/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/netstandard1.3/Protobuf.MSBuild.dll differ diff --git a/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/readme.md b/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/readme.md new file mode 100644 index 00000000000..2f2b5adef9f --- /dev/null +++ b/src/csharp/Grpc.Tools.Tests/IntegrationTests/TasksAssembly/readme.md @@ -0,0 +1,5 @@ +This directory contains a copy of the DLL `Protobuf.MSBuild.dll` for custom tasks built by the Grpc.Tools project. This is required by the Grpc.Tools MSBuild targets. + +In the CI environment the Grpc.Tools project output is not available, thus the binary file included here. + +In a development environment you can rebuild and replace `Protobuf.MSBuild.dll` as necessary. diff --git a/src/csharp/Grpc.Tools.Tests/MsBuildIntegrationTest.cs b/src/csharp/Grpc.Tools.Tests/MsBuildIntegrationTest.cs index 040170b2912..b6a2c7265ac 100644 --- a/src/csharp/Grpc.Tools.Tests/MsBuildIntegrationTest.cs +++ b/src/csharp/Grpc.Tools.Tests/MsBuildIntegrationTest.cs @@ -189,8 +189,12 @@ namespace Grpc.Tools.Tests // Paths for Grpc.Tools files grpcToolsDir = Path.GetFullPath($"{parentDir}/../../../Grpc.Tools"); grpcToolsBuildDir = Path.GetFullPath($"{grpcToolsDir}/build"); - // Task assembly is needed to run the extension tasks - tasksAssembly = Path.GetFullPath($"{grpcToolsDir}/bin/Debug/netstandard1.3/{TASKS_ASSEMBLY_DLL}"); + + // Task assembly is needed to run the extension tasks. + // In development environments you can use this one: + //tasksAssembly = Path.GetFullPath($"{grpcToolsDir}/bin/Debug/netstandard1.3/{TASKS_ASSEMBLY_DLL}"); + // This one is provided for CI environments. + tasksAssembly = Path.GetFullPath($"{testDataDir}/TasksAssembly/netstandard1.3/{TASKS_ASSEMBLY_DLL}"); // output directory tempDir = Path.GetFullPath(System.IO.Path.GetTempPath()).Replace('\\','/');