MicrosoftEdge / MicrosoftEdge/WebView2Samples

Build error in Windows Implementation library resource.h

Open
#108 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Description

Hi,

I'm getting the following build error when trying to build WebView2GettingStarted (Win32):
1>HelloWebView.cpp
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): error C2440: 'specialization': cannot convert from 'void (__cdecl *)(HANDLE) noexcept' to 'unknown-type'
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): note: Context does not allow for disambiguation of overloaded function

I'm using VS2017 15.9.39
Windows SDK version 10.0.17763.0
Platform Toolset v141 (I changed it from v142 for VS2017).
Release/x64

I installed the latest versions of WIL and WebView2 using the NuGet package manager.

Is there something else missing in order to build on VS2017?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WebView2GettingStarted Win32 build and inspect packages/microsoft.windows.implementationlibrary.1.0.210930.1/include/wil/resource.h around line 2543. Reproduce with VS2017 15.9.39, Windows SDK 10.0.17763.0, and platform toolset v141, then determine whether the failure is specific to that toolchain or package version; done means the sample builds successfully or the compatibility requirement is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.