Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/AppInstallerCLICore/AppInstallerCLICore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@
<SubSystem Condition="'$(Configuration)|$(Platform)'=='ReleaseStatic|x64'">Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(UseProdCLSIDs)' == 'true'">
<ClCompile>
<PreprocessorDefinitions>USE_PROD_CLSIDS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(WingetDisableTestHooks)'=='true'">
<ClCompile>
<PreprocessorDefinitions>AICLI_DISABLE_TEST_HOOKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLICore/Commands/DscCommandBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLICore/Commands/DscCommandBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <json/json.h>
#include <optional>

#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
Expand Down