MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Cannot make WinMD libraries of our SDK with Webview2 for "Any CPU" UWP platform
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
We use winmd files for our C# SDK as this allows us to ship x64,x86 and arm all in one winmd file since
we built with "Any CPU" to create UWP compatible libraries.
The issue is that when we include Webview2 we get this error when trying to build the winmd with "Any CPU":
Error The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "Microsoft.VCLibs.Desktop, Version=14.0". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, x64, ARM, ARM64". PubfinityPassportSDK C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 2451
This prevents us from using our normal build method.
Are there any plans to/when this will be addressed?
Version
Browser version string (from webview2 environment): "92.0.902.84"
SDK: Microsoft.Web.WebView2 1.0.955-prerelease nuget (other versions also have this issue)
Runtime: Evergreen (latest)
Framework: -
OS: Win10 Pro 10.0.19042 (19042.1165)
Repro Steps
I attached a zip file with the VS solution which reproduces this error.
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.
Research direction
Start by opening the attached WinMDFail.zip Visual Studio solution and reproducing the build with the UWP platform set to Any CPU. Compare the WebView2 SDK 1.0.955-prerelease reference with the MSBuild error; done means identifying whether the SDK can support Any CPU or clearly documenting the supported architecture limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100