Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Build error in Windows Implementation library resource.h

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

Nobody has claimed this yet.

Assessment

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

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.

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?

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

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from MicrosoftEdge/WebView2Samples

All issues in MicrosoftEdge/WebView2Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.