MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Feature]: MSBuild property equivalent to CORE_WEBVIEW_TARGET_PRODUCT_VERSION
@Lakshmisha-KS is already working on this.
Since Jun 24, 2026.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature/enhancement you need
Microsoft.Web.WebView2 NuGet package should define a MSBuild property containing the required version of WebView2 Runtime. The same version which is currently provided in the Release Notes and WebView2EnvironmentOptions.h (C++):
#define CORE_WEBVIEW_TARGET_PRODUCT_VERSION L"148.0.3967.48"
Also, it's hard-coded inside Microsoft.Web.WebView2.Core.dll.
The scenario/use case where you would use this feature
This version is exactly what I need in my WiX Bundle DetectCondition\InstallCondition, when deciding whether to run MicrosoftEdgeWebview2Setup.exe. I use the registry check from Detect if a WebView2 Runtime is already installed.
Majority of the users have newer versions of WebView2 Runtime already installed thankfully to auto-updates. So, I would like to avoid running MicrosoftEdgeWebview2Setup.exe unconditionally because:
- It's rarely needed due to auto-updates.
- It takes time (noticeable delay) to go online to check for newer versions and updates, which aren't required to run my application.
- WebView2 Runtime might be in use and that complicates the installation.
How important is this request to you?
----Please select----
Suggested implementation
No response
What does your app do? Is there a pending deadline for this request?
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.