summarylogtreecommitdiffstats
path: root/copy_hostfxr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'copy_hostfxr.patch')
-rw-r--r--copy_hostfxr.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/copy_hostfxr.patch b/copy_hostfxr.patch
new file mode 100644
index 000000000000..58348b9cf3c5
--- /dev/null
+++ b/copy_hostfxr.patch
@@ -0,0 +1,12 @@
+Index: xamarin-pkg-msbuild/eng/cibuild_bootstrapped_msbuild.sh
+===================================================================
+--- xamarin-pkg-msbuild.orig/eng/cibuild_bootstrapped_msbuild.sh
++++ xamarin-pkg-msbuild/eng/cibuild_bootstrapped_msbuild.sh
+@@ -56,6 +56,7 @@ function DownloadMSBuildForMono {
+ unzip -q "$msbuild_zip" -d "$artifacts_dir"
+ # rename just to make it obvious when reading logs!
+ mv $artifacts_dir/msbuild $mono_msbuild_dir
++ cp $(pacman -Ql dotnet-host | grep libhostfxr.so | cut -d' ' -f2) $artifacts_dir/mono-msbuild/SdkResolvers/Microsoft.DotNet.MSBuildSdkResolver/
+ sed -i 's#/sh$#/bash#' $artifacts_dir/mono-msbuild/msbuild
+ chmod +x $artifacts_dir/mono-msbuild/MSBuild.dll
+ rm "$msbuild_zip"