From 3194e3206eac90e172615048748d016145953fa3 Mon Sep 17 00:00:00 2001
From: Tom Edwards <109803929+TomEdwardsEnscape@users.noreply.github.com>
Date: Fri, 23 Feb 2024 00:55:11 +0100
Subject: [PATCH] Replace external MSBuild processes with TaskHostFactory
(#14700)
---
build/BuildTargets.targets | 7 +++-
packages/Avalonia/Avalonia.props | 1 -
packages/Avalonia/AvaloniaBuildTasks.targets | 34 ++------------------
samples/IntegrationTestApp/bundle.sh | 2 +-
4 files changed, 10 insertions(+), 34 deletions(-)
diff --git a/build/BuildTargets.targets b/build/BuildTargets.targets
index 13b002d5235..9b6947d18f4 100644
--- a/build/BuildTargets.targets
+++ b/build/BuildTargets.targets
@@ -1,11 +1,16 @@
$(MSBuildThisFileDirectory)\..\src\Avalonia.Build.Tasks\bin\$(Configuration)\netstandard2.0\Avalonia.Build.Tasks.dll
- true
true
true
true
+
+
+
+
+
diff --git a/packages/Avalonia/Avalonia.props b/packages/Avalonia/Avalonia.props
index db43467f933..57b7f9dc32e 100644
--- a/packages/Avalonia/Avalonia.props
+++ b/packages/Avalonia/Avalonia.props
@@ -3,7 +3,6 @@
$(MSBuildThisFileDirectory)\..\tools\netstandard2.0\designer\Avalonia.Designer.HostApp.dll
$(MSBuildThisFileDirectory)\..\tools\net461\designer\Avalonia.Designer.HostApp.exe
$(MSBuildThisFileDirectory)\..\tools\netstandard2.0\Avalonia.Build.Tasks.dll
- false
$(UsedAvaloniaProducts);AvaloniaUI
true
false
diff --git a/packages/Avalonia/AvaloniaBuildTasks.targets b/packages/Avalonia/AvaloniaBuildTasks.targets
index eef6d51cae2..89e2474a9c1 100644
--- a/packages/Avalonia/AvaloniaBuildTasks.targets
+++ b/packages/Avalonia/AvaloniaBuildTasks.targets
@@ -1,7 +1,5 @@
- <_AvaloniaUseExternalMSBuild>$(AvaloniaUseExternalMSBuild)
- <_AvaloniaUseExternalMSBuild Condition="'$(_AvaloniaForceInternalMSBuild)' == 'true'">false
low
<_AvaloniaSkipXamlCompilation Condition="'$(_AvaloniaSkipXamlCompilation)' == ''">false
false
@@ -57,8 +55,8 @@
- $(BuildAvaloniaResourcesDependsOn);AddAvaloniaResources;ResolveReferences;_GenerateAvaloniaResourcesDependencyCache;_GenerateNoWarnForExec
- $(CompileAvaloniaXamlDependsOn);PrepareToCompileAvaloniaXaml;_GenerateNoWarnForExec
+ $(BuildAvaloniaResourcesDependsOn);AddAvaloniaResources;ResolveReferences;_GenerateAvaloniaResourcesDependencyCache
+ $(CompileAvaloniaXamlDependsOn);FindReferenceAssembliesForReferences;PrepareToCompileAvaloniaXaml
@@ -81,14 +79,6 @@
-
-
-
-
- <_NoWarnForExec>'"$(NoWarn)"'
- <_NoWarnForExec Condition="$([MSBuild]::IsOSPlatform('Windows'))">\"$(NoWarn)\"
-
-
-
+
-
- $(IntermediateOutputPath)/Avalonia/references
false
false
false
@@ -132,7 +117,6 @@
-
@@ -144,12 +128,7 @@
Outputs="@(CompileAvaloniaXamlOutputs)"
Condition="'@(AvaloniaResource)@(AvaloniaXaml)' != '' AND $(DesignTimeBuild) != true AND $(EnableAvaloniaXamlCompilation) != false">
-
-
-
-
-
-
-
-