From 31a393e19313064fea38bae3971fa6bf9c8fc70d Mon Sep 17 00:00:00 2001 From: John McPherson Date: Mon, 23 Jun 2025 16:49:21 -0700 Subject: [PATCH] Move to proper signal for dev/not-dev --- src/AppInstallerCLICore/AppInstallerCLICore.vcxproj | 5 +++++ src/AppInstallerCLICore/Commands/DscCommandBase.cpp | 2 +- src/AppInstallerCLICore/Commands/DscCommandBase.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/AppInstallerCLICore/AppInstallerCLICore.vcxproj b/src/AppInstallerCLICore/AppInstallerCLICore.vcxproj index 573f1cef35..6d647e7ea0 100644 --- a/src/AppInstallerCLICore/AppInstallerCLICore.vcxproj +++ b/src/AppInstallerCLICore/AppInstallerCLICore.vcxproj @@ -279,6 +279,11 @@ Windows + + + USE_PROD_CLSIDS;%(PreprocessorDefinitions) + + AICLI_DISABLE_TEST_HOOKS;%(PreprocessorDefinitions) diff --git a/src/AppInstallerCLICore/Commands/DscCommandBase.cpp b/src/AppInstallerCLICore/Commands/DscCommandBase.cpp index bd8b39e06a..254351a21e 100644 --- a/src/AppInstallerCLICore/Commands/DscCommandBase.cpp +++ b/src/AppInstallerCLICore/Commands/DscCommandBase.cpp @@ -113,7 +113,7 @@ namespace AppInstaller::CLI Json::Value result{ Json::ValueType::objectValue }; -#ifndef AICLI_DISABLE_TEST_HOOKS +#ifndef USE_PROD_CLSIDS result["executable"] = "wingetdev"; #else result["executable"] = "winget"; diff --git a/src/AppInstallerCLICore/Commands/DscCommandBase.h b/src/AppInstallerCLICore/Commands/DscCommandBase.h index 3eb54a349f..d28cbad65c 100644 --- a/src/AppInstallerCLICore/Commands/DscCommandBase.h +++ b/src/AppInstallerCLICore/Commands/DscCommandBase.h @@ -5,7 +5,7 @@ #include #include -#ifndef AICLI_DISABLE_TEST_HOOKS +#ifndef USE_PROD_CLSIDS #define WINGET_DSCV3_MODULE_NAME "Microsoft.WinGet.Dev" #define WINGET_DSCV3_MODULE_NAME_WIDE L"Microsoft.WinGet.Dev" #else