From 1bbf2721540d67b6c26baee184e557fa3d3dbc8d Mon Sep 17 00:00:00 2001 From: Kristen Schau <47155823+krschau@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:57:13 -0500 Subject: [PATCH] Remove Native Telemetry from Unstub (#3977) --- build/scripts/Unstub.ps1 | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/build/scripts/Unstub.ps1 b/build/scripts/Unstub.ps1 index 7888f14917..1bac58ffd0 100644 --- a/build/scripts/Unstub.ps1 +++ b/build/scripts/Unstub.ps1 @@ -30,30 +30,3 @@ $itemGroupNode = $xml.CreateElement("ItemGroup") $itemGroupNode.AppendChild($packageReferenceNode) $xml.DocumentElement.AppendChild($itemGroupNode) $xml.Save($projFile) - - -# -# Unstub native telemetry -# - -# Delete the existing stub .h -Remove-Item "$($PSScriptRoot)\..\..\telemetry\DevHome.Telemetry.Native\inc\MicrosoftTelemetry.h" - -# Load packages.config -$packagesConfig = "$($PSScriptRoot)\..\..\telemetry\DevHome.Telemetry.Native\packages.config" -$xml = [xml](Get-Content $packagesConfig -Encoding UTF8 -Raw) -$xml.PreserveWhitespace = $true - -# Create new -# e.g. -$packageNode = $xml.CreateElement("package"); -$packageNode.SetAttribute("id", "Microsoft.Telemetry.Inbox.Native") -$packageNode.SetAttribute("version", "10.0.18362.1-190318-1202.19h1-release.amd64fre") -$packageNode.SetAttribute("targetFramework", "native") - -# Append to -$packagesNode = $xml.SelectSingleNode("/packages") -$packagesNode.AppendChild($packageNode) - -# Save -$xml.Save($packagesConfig)