[Problem/Bug]: MSBuild Error in 1.0.3065.39\build\Common.targets
What happened?
I am getting MSBuild Errors when compiling project using cmd through MSBuild, not from VS 2022(in VS 2022, it is building successfully)
- getting MSBuild issues for one of my .csproj file when Webview2 version is greater than 1.0.2739.15
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
133.0.3065.69
SDK Version
1.0.3065.39
Framework
WPF
Operating System
Windows 10
OS Version
No response
Repro steps
Open CMD in admin mode:
type following command for .csproj
cd C:\Program Files (x86)\MSBuild\14.0\Bin
then run command msbuild ".csproj-file-path"
Getting Error:
**\Microsoft.Web.WebView2.1.0.3065.39\build\Common.targets(267,109): error MSB4066: The attribute "Implementation" in element <WindowsMetadataReference> is unrecognized.**
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
SDK 1.0.2478.35
@sivMSFT
I'm seeing this too. The 'Microsoft.Web.WebView2.0.9.579-prerelease' version used in the WebView2 Samples build fine but not 'Microsoft.Web.WebView2.1.0.3537.50' that nuget delivers.
Same issue here: Trying to build .NET 4.8 project with WebView2 1.0.3505.46 using MSBuild. Getting the same error: The attribute "Implementation" in element <WindowsMetadataReference> is unrecognized.