From 53796a0ef3c31aafd8dd7f4be6f714c4469d47d9 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 9 Jun 2021 11:14:37 +0200 Subject: [PATCH] Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 --- build.gradle.kts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index ca5096f590..4a8ad8aca4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -229,10 +229,30 @@ tasks { copy { from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) into(file("$destinationDir/$pluginName/omnisharp/linux")) + exclude("run") + } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 + copy { + from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) + into(file("$destinationDir/$pluginName/omnisharp/linux")) + include("run") + filter { + it.replace("export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \${config_file}\"", "export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \\\"\${config_file}\\\"\"") + } } copy { from(zipTree(downloadOmnisharpOsxZipFile.get().dest)) into(file("$destinationDir/$pluginName/omnisharp/osx")) + exclude("run") + } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 + copy { + from(zipTree(downloadOmnisharpOsxZipFile.get().dest)) + into(file("$destinationDir/$pluginName/omnisharp/osx")) + include("run") + filter { + it.replace("export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \${config_file}\"", "export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \\\"\${config_file}\\\"\"") + } } copy { from(zipTree(downloadOmnisharpWindowsZipFile.get().dest))