Skip to content

Commit

Permalink
Remove Native Telemetry from Unstub (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored Nov 13, 2024
1 parent ca6e908 commit 1bbf272
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions build/scripts/Unstub.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package>
# e.g. <package id="Microsoft.Telemetry.Inbox.Native" version="10.0.18362.1-190318-1202.19h1-release.amd64fre" targetFramework="native" />
$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 <packages>
$packagesNode = $xml.SelectSingleNode("/packages")
$packagesNode.AppendChild($packageNode)

# Save
$xml.Save($packagesConfig)

0 comments on commit 1bbf272

Please sign in to comment.