From f850b9d4b13661c91da5c45f36468fe0a329e17c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 22 May 2025 08:05:35 +0000
Subject: [PATCH 1/3] Initial plan for issue
From dd4f9b55e693f9bef4190199e28a82b7ea33bdf2 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 22 May 2025 08:18:22 +0000
Subject: [PATCH 2/3] Add MakePri.exe telemetry disabler to fix assembly
loading error
Co-authored-by: LegendaryBlair <122517415+LegendaryBlair@users.noreply.github.com>
---
...ft.Build.Msix.Pri.DisableTelemetry.targets | 21 +++++++++++++++++++
.../Microsoft.Build.Msix.Pri/README.md | 14 +++++++++++++
...Microsoft.WindowsAppSDK.Foundation.targets | 3 +++
.../WindowsAppSDK-Nuget-Native.targets | 3 +++
4 files changed, 41 insertions(+)
create mode 100644 build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
create mode 100644 build/NuSpecs/Microsoft.Build.Msix.Pri/README.md
diff --git a/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets b/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
new file mode 100644
index 0000000000..5541402d16
--- /dev/null
+++ b/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+ true
+
+ <_MakePriDisableTelemetry>true
+
+
+
+
+
+ <_MakePriEnvVars>MAKEPRI_DISABLE_TELEMETRY=1;$(_MakePriEnvVars)
+
+
+
\ No newline at end of file
diff --git a/build/NuSpecs/Microsoft.Build.Msix.Pri/README.md b/build/NuSpecs/Microsoft.Build.Msix.Pri/README.md
new file mode 100644
index 0000000000..c2bc31045b
--- /dev/null
+++ b/build/NuSpecs/Microsoft.Build.Msix.Pri/README.md
@@ -0,0 +1,14 @@
+# Microsoft.Build.Msix.Pri Telemetry Disabler
+
+This directory contains targets files to disable telemetry for MakePri.exe during Windows App SDK package builds.
+
+## DisableTelemetry.targets
+
+This file sets environment variables and MSBuild properties to disable telemetry in MakePri.exe, preventing errors related to missing Microsoft.VisualStudio.Utilities.Internal assembly when updating the Windows App SDK NuGet package.
+
+The issue occurs when MakePri.exe attempts to use Visual Studio's telemetry functionality but can't find the required assembly, causing the build to fail with:
+```
+error MSB6003: The specified task executable "MakePri.exe" could not be run. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Utilities.Internal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
+```
+
+This targets file provides a solution by disabling the telemetry feature in MakePri.exe, allowing the build to proceed without requiring the missing assembly.
\ No newline at end of file
diff --git a/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets b/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets
index 925af86b05..f2849732a2 100644
--- a/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets
+++ b/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets
@@ -2,6 +2,9 @@
+
+
+
diff --git a/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets b/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets
index e959cfda9d..7a6bc10a83 100644
--- a/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets
+++ b/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets
@@ -2,6 +2,9 @@
+
+
+
x86
$(Platform)
From 1cd8392f684c01a5653a568a495645d0812b6d13 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 22 May 2025 08:19:27 +0000
Subject: [PATCH 3/3] Enhance MakePri telemetry disabler with better comments
and target hooks
Co-authored-by: LegendaryBlair <122517415+LegendaryBlair@users.noreply.github.com>
---
...osoft.Build.Msix.Pri.DisableTelemetry.targets | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets b/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
index 5541402d16..2b835614b0 100644
--- a/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
+++ b/build/NuSpecs/Microsoft.Build.Msix.Pri/Microsoft.Build.Msix.Pri.DisableTelemetry.targets
@@ -4,6 +4,17 @@
@@ -12,10 +23,13 @@
<_MakePriDisableTelemetry>true
-
+
<_MakePriEnvVars>MAKEPRI_DISABLE_TELEMETRY=1;$(_MakePriEnvVars)
+
+
+
\ No newline at end of file