From 63ac2d0eaa7bd4846ac4cff5a4a12da0b7dd3985 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Wed, 8 Jan 2025 08:22:56 +0000 Subject: [PATCH 1/2] Copy built-in resources to "OutputPath" only when needed The conditions are: - It's being debugged; - It's DXMainClient; - It's cross-targeting build ('$(TargetFramework)' == ''). Don't know the whole story, just from my guess: - https://github.com/dotnet/msbuild/blob/b497794a81585d40ba5401acde02200f7b7d863b/src/Tasks/Microsoft.Managed.Before.targets - https://github.com/dotnet/msbuild/blob/b497794a81585d40ba5401acde02200f7b7d863b/src/Tasks/Microsoft.Common.CrossTargeting.targets - No "ClientDefinitions.ini" in destination. --- Directory.Build.targets | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 479cc2f14..ec40e6abe 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -90,7 +90,7 @@ - + @@ -99,12 +99,12 @@ - - - - - - + + + + + + From f1fb5cf98f2959b44108e46e2180980c473c5c4c Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Sun, 26 Jan 2025 16:44:01 +0000 Subject: [PATCH 2/2] Copy built-in resources to "OutputPath" only when needed The conditions are: - It's being debugged; - It's ClientCore or DTAConfig or DXMainClient; - It's cross-targeting build ('$(TargetFramework)' == ''). Don't know the whole story, just from my guess: - https://github.com/dotnet/msbuild/blob/b497794a81585d40ba5401acde02200f7b7d863b/src/Tasks/Microsoft.Managed.Before.targets - https://github.com/dotnet/msbuild/blob/b497794a81585d40ba5401acde02200f7b7d863b/src/Tasks/Microsoft.Common.CrossTargeting.targets - No "ClientDefinitions.ini" in destination. --- Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index ec40e6abe..45df3aa93 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -90,7 +90,7 @@ - +