# JUCE\_USE\_WIN\_WEBVIEW2\_WITH\_STATIC\_LINKING with Projucer 8.0.8 and MSVS19 Win10

**URL:** <https://forum.juce.com/t/juce-use-win-webview2-with-static-linking-with-projucer-8-0-8-and-msvs19-win10/66333>\
**Category:** Windows\
**Created:** [June 10, 2025, 6:56pm UTC](https://forum.juce.com/t/juce-use-win-webview2-with-static-linking-with-projucer-8-0-8-and-msvs19-win10/66333 "2025-06-10T18:56:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerre](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jerre/32/45_2.png) [@jerre](https://forum.juce.com/u/jerre)\
**Post date:** [June 10, 2025, 6:56pm UTC](https://forum.juce.com/t/juce-use-win-webview2-with-static-linking-with-projucer-8-0-8-and-msvs19-win10/66333/1 "2025-06-10T18:56:05Z")

</div>

in `juce_gui_header.h` it says

```auto
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 `.vcxroj`s, 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

---

<div class="post-metadata">

**Author:** ![jerre](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jerre/32/45_2.png) [@jerre](https://forum.juce.com/u/jerre)\
**Post date:** [June 10, 2025, 7:08pm UTC](https://forum.juce.com/t/juce-use-win-webview2-with-static-linking-with-projucer-8-0-8-and-msvs19-win10/66333/2 "2025-06-10T19:08:20Z")

</div>

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

 ![Screenshot 2025-06-10 at 21.07.31](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/b/a/ba1a42c9177dde47685b6d140d1b0f61c833c379.png)

For future reference and search
