Microsoft.Toolkit.Win32
Microsoft.Toolkit.Win32 copied to clipboard
Unable to build VSTO project with WebView 6.1.2 because of “ReferencePath” does not define a value for metadata “CopyLocal” error
Describe the bug
Not sure it is the right place to ask, but maybe you can guide where to look. I am trying to use WebView control in the VSTO project for Outlook but unable to build because of the error: Error The item "C:\Users\sergeybelikov.nuget\packages\system.runtime.windowsruntime\4.6.0\buildTransitive\net461....\ref\netstandard2.0\System.Runtime.WindowsRuntime.dll" in item list "ReferencePath" does not define a value for metadata "CopyLocal". In order to use this metadata, either qualify it by specifying %(ReferencePath.CopyLocal), or ensure that all items in this list define a value for this metadata. OutlookAddin
The same control is working in a standalone WPF. And with 5.1.1 version of WebView package VSTO add-in is also compiling. Unfortunately, 5.1.1 missing event WebResourceRequested which we need to intercept POST data webpage is sending. We use it to get SAML2 auth token to use in our add-in. Maybe there is another way to do that?
I know that there is WebView2 already, but it is not released to .NET yet. And also we don't want to bloat the installer with 200+ Mb of runtime.
NuGet Package(s): Microsoft.Toolkit.Wpf.UI.Controls.WebView
Package Version(s): 6.1.2
Project .NET Version:
- .NET Framework 4.7
Visual Studio
- 2019 (version: 16.7.7)
Hello BelikovSergey, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
FYI @pagoe-msft ⬆
Any update on this? I'm having the same issue.
Sorry, this issue did not get routed to the correct team. We're are preparing to fix this for an upcoming release. Thanks.