MicrosoftEdge / WebView2Browser

A web browser built with the Microsoft Edge WebView2 control.
Other
413 stars 79 forks source link

Can't build due to missing cpprest/json.h #50

Closed blitz-research closed 1 year ago

blitz-research commented 1 year ago

I get the following errors when attempting to build with msvc2022 community edition:

Build started... 1>------ Build started: Project: WebView2Browser, Configuration: Debug x64 ------ 1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(517,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory. 1>BrowserWindow.cpp 1>C:\Users\marks\Desktop\WebView2Browser\framework.h(17,10): fatal error C1083: Cannot open include file: 'cpprest/json.h': No such file or directory 1>Tab.cpp 1>C:\Users\marks\Desktop\WebView2Browser\framework.h(17,10): fatal error C1083: Cannot open include file: 'cpprest/json.h': No such file or directory 1>WebViewBrowserApp.cpp 1>C:\Users\marks\Desktop\WebView2Browser\framework.h(17,10): fatal error C1083: Cannot open include file: 'cpprest/json.h': No such file or directory 1>Generating Code... 1>Done building project "WebViewBrowserApp.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build started at 11:59 AM and took 08.333 seconds ==========

Where do I get cpprest/json.h from?

tgraupmann commented 1 year ago

You can find cpprest here - https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Windows

blitz-research commented 1 year ago

Thanks!