Microsoft.Toolkit.Win32 icon indicating copy to clipboard operation
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

Open BelikovSergey opened this issue 4 years ago • 4 comments

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)

BelikovSergey avatar Nov 10 '20 16:11 BelikovSergey

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 🙌

ghost avatar Nov 10 '20 16:11 ghost

FYI @pagoe-msft ⬆

michael-hawker avatar Nov 18 '20 21:11 michael-hawker

Any update on this? I'm having the same issue.

NickVerys avatar Feb 03 '21 20:02 NickVerys

Sorry, this issue did not get routed to the correct team. We're are preparing to fix this for an upcoming release. Thanks.

sujitnayak avatar Jul 15 '21 00:07 sujitnayak