I'm trying to follow UWP with Desktop Extension – Part 2 of UWP and WinForms desktop-bridge calling the processes and passing parameters. This example Console Program.cs code includes parameters string:
string parameters = ApplicationData.Current.LocalSettings.Values["parameters"] as string;
But the name ApplicationData
does not exists in the current context, I'm trying to find out, if I've missed some reference or it is different version of C#
I'm not sure even if it is what it requires, but adding of reference Windows.Foundation.UniversalApiContract.windmd
throws another error with Values
:
Error CS0012 The type 'IPropertySet' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows.Foundation.FoundationContract
error NETSDK1130: Windows.winmd cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more information, see https://aka.ms/netsdk1130
– Hematite