JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING with Projucer 8.0.8 and MSVS19 Win10

in juce_gui_header.h it says

Config: JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING
    Enables the use of the Microsoft Edge (Chromium) WebView2 browser on Windows.

    If using the Projucer, the Microsoft.Web.WebView2 package will be added to the
    project solution if this flag is enabled.

Which I interpret as just putting JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING=1 in the exporter preprocessor definitions and it should work.

When trying to build in MSVS2019 it can not locate WebView2.h. I tried manually adding the WebView2 stuff through the MSVS GUI’s NuGet, which did build for a second, but could not link, and then broke again.

In the git diff after saving the new preproc, it seems like that’s the only thing that changed in the .vcxrojs, no other build settings.

Am I right in expecting just setting the preproc to be enough, as per documentation? How do I get statically linked webview2 to work with Projucer?

for completeness I’m currently on MSVS2019, Win10, Juce 8.0.8

ok LLM’s to the rescue, instead of manually adding it to preprocessor definitions, there’s a toggle in the gui extra module

For future reference and search