I can't fix the error C1189 "You need to enable at least one plugin format"

I want to program a plugin manager (audio application).
When compiling the code in Visual Studio 2019, I always get the error “You need to enable at least one plugin format”.

I am using the Modules:
juce_audio_basics
juce_audio_plugin_client
juce_audio_processors
juce_core
juce_data_structures
juce_events
juce_graphics
juce_gui_basics
juce_gui_extra

for the module “juce_audio_processors” I only set the option “JUCE_PLUGINHOST_VST” to “Enabled”, so that the command “VSTPluginFormat” is recognized.
This is the only code I have written so far and it is in MainComponent.cpp

// Create object of list of known plugins.
juce::KnownPluginList knownPluginList;
knownPluginList.clearBlacklistedFiles();

// Specifiy the plugin format.
juce::VSTPluginFormat format;

juce::FileSearchPath searchPath("C:/learn_juce/AudioPluginManager/test_scan_plugins");

// Create scanner for  directory and populate plugin list.
juce::PluginDirectoryScanner pluginDirectoryScanner(knownPluginList,
    format,
    searchPath,
    true /*is reccursive*/,
    juce::File(),
    true /*is asyncronous*/);

If you’re building an app rather than a plugin, you shouldn’t need the juce_audio_plugin_client module. I think removing this module should solve the issue.

thank you, it worked.
Now I get the error
“pluginterfaces/vst2.x/aeffect.h”: No such file or directory

Do you know a solution for this too?

To host VST2 plugins, you’ll need a copy of the VST2 SDK. This is no longer distributed by JUCE or by Steinberg. You’ll also need to have written permission from Steinberg in order to distribute a VST2 host/plugin.

If you don’t have permission from Steinberg and a copy of the SDK, you’ll need to disable VST2 support in your project. To do this, open your project in the Projucer and select juce_audio_processors in the modules list. Then, change JUCE_PLUGINHOST_VST to ‘disabled’.

Thanks, the error is gone