Skip to content

Generator project for Microsoft.Web.WebView2.Win32.winmd

Notifications You must be signed in to change notification settings

smourier/webview2-win32md

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webview2-win32md

Generator project for Microsoft.Web.WebView2.Win32.winmd, using the out-of-tree SDK for win32metadata.

Getting Started

Install the dotnet CLI if you don't already have it.

Note

although it's a Visual Studio project, Visual Studio's "Build" command won't work

So, clone this repo and run the following command from the repo root:

> dotnet build

The build may take a few minutes, but when it's done the winmd file should be in bin\Microsoft.Web.WebView2.Win32.winmd.

Tip

In case of build issues, make sure the ClangSharpPInvokeGenerator dotnet tool is not installed globally. If it is, it's version may be too high and the build may fail with a "error CS0246: The type or namespace name 'NativeAnnotation' could not be found" error.

Updating the Metadata

When new versions of the WebView2 SDK are released, you can update the version used to build the metadata by updating this version number in WebView2Win32Metadata.proj:

    <WinmdVersion>1.0.3537.50</WinmdVersion>

Dependencies

Related Projects

About

Generator project for Microsoft.Web.WebView2.Win32.winmd

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

  • C++ 92.2%
  • Batchfile 7.8%