diff --git a/pipelines/azure-pipelines.release.yml b/pipelines/azure-pipelines.release.yml
index 48782390..eeb351ac 100644
--- a/pipelines/azure-pipelines.release.yml
+++ b/pipelines/azure-pipelines.release.yml
@@ -90,6 +90,22 @@ jobs:
source: 'minkernel\published\internal\telemetry\TelemetryEventSource.cs'
destination: '$(workingDirectory)\WingetCreateCLI\Telemetry\'
+ # Copies binary dependencies from VCLibs package to be included in standalone exe
+ - task: PowerShell@2
+ displayName: Download VCLibs package
+ inputs:
+ targetType: 'inline'
+ script: |
+ iwr https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
+
+ - task: ExtractFiles@1
+ displayName: Extract files from VCLibs appx
+ inputs:
+ archiveFilePatterns: 'Microsoft.VCLibs.x64.14.00.Desktop.appx'
+ destinationFolder: '$(workingDirectory)\WingetCreateCLI'
+ cleanDestinationFolder: false
+ overwriteExistingFiles: false
+
# NuGetCommand task, but since there are two duplicate tasks by this name in the org, must refer to it by GUID
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: Restore Packages
diff --git a/src/WingetCreateCLI/WingetCreateCLI.csproj b/src/WingetCreateCLI/WingetCreateCLI.csproj
index 2bb81994..5a36a9fe 100644
--- a/src/WingetCreateCLI/WingetCreateCLI.csproj
+++ b/src/WingetCreateCLI/WingetCreateCLI.csproj
@@ -77,6 +77,19 @@
PublicResXFileCodeGenerator
+
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
@@ -100,5 +113,4 @@
$(TargetFrameworkSDKToolsDirectory)$(PlatformTarget)\
-
\ No newline at end of file