From 6af0e709e6f2d32e88ed2f1d14a01b4a13413e14 Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Fri, 18 Oct 2024 13:09:57 -0700 Subject: [PATCH 1/5] Use PackageDownloadAndReference to avoid including msbuild dependencies --- ...alysis.Workspaces.MSBuild.BuildHost.csproj | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj index 5f057a9af8da1..b8a150b23f0c4 100644 --- a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj +++ b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj @@ -23,16 +23,20 @@ true - - - - - + + + + + + - + @@ -94,4 +98,5 @@ + From 8aa13a18dcd50feffca8bef4243ff95b3da55e9d Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Fri, 18 Oct 2024 13:18:14 -0700 Subject: [PATCH 2/5] Add file --- .../PackageDownloadAndReference.targets | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 eng/targets/PackageDownloadAndReference.targets diff --git a/eng/targets/PackageDownloadAndReference.targets b/eng/targets/PackageDownloadAndReference.targets new file mode 100644 index 0000000000000..1587536ea13b1 --- /dev/null +++ b/eng/targets/PackageDownloadAndReference.targets @@ -0,0 +1,35 @@ + + + + + + + lib/$(TargetFramework) + false + + + + + + + + + + + From 29e372e30d953b49887017e42d4d2f2c910a11cb Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Fri, 18 Oct 2024 14:28:59 -0700 Subject: [PATCH 3/5] Exclude SRM --- ...crosoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj index b8a150b23f0c4..686a07ef1aac8 100644 --- a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj +++ b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj @@ -36,13 +36,17 @@ - + + + + + From 027b8e0afbbea2f67be3811e654eb3a22ec9dea3 Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Fri, 18 Oct 2024 15:31:45 -0700 Subject: [PATCH 4/5] Fix source build --- ...alysis.Workspaces.MSBuild.BuildHost.csproj | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj index 686a07ef1aac8..ddfe7b1245bad 100644 --- a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj +++ b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj @@ -21,18 +21,27 @@ --> AnyCPU true - - + - - - - - + <_MsbuildVersion>17.3.4 + + + + + + + + + + + + + + + From 71a1b33250a9e7c8c47267522c113b29db00f6aa Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Mon, 21 Oct 2024 12:47:53 -0700 Subject: [PATCH 5/5] Fix --- .../Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj index ddfe7b1245bad..96805e041d8cb 100644 --- a/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj +++ b/src/Workspaces/Core/MSBuild.BuildHost/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.csproj @@ -34,7 +34,7 @@ - +