CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

Unable to build VSTO project with WebView 6.1.2 because of “ReferencePath” does not define a value for metadata “CopyLocal” error #294

Open BelikovSergey opened 3 years ago

BelikovSergey commented 3 years ago

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:

Visual Studio

ghost commented 3 years ago

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 🙌

michael-hawker commented 3 years ago

FYI @pagoe-msft ⬆

NickVerys commented 3 years ago

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

sujitnayak commented 3 years ago

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