I am trying to get back into modernizing a Forms app--I have been able o successfully submit it to the Store. All good there.
However, I'm trying to convert settings storage over to ApplicationData.Current.LocalSettings.Values instead of storing those in the registry. There's only a handful so it's ideal to convert.
Exception thrown at 0x00007FFD59FDD759 in FormsApp.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0000006B3EBF6B90.
I've been trying to check with this, but it currently never seems to have access to this API. Above is what I get if I just try using the ApplicationData.Current.LocalSettings.Values line without checking.
if (ApiInformation.IsPropertyPresent("ApplicationData.Current.LocalSettings.Values", "Values"))
{
}
The Forms project currently has the Microsoft.Windows.SDK.Contracts 10.0.19041.1 Nuget installed.
I am trying to get back into modernizing a Forms app--I have been able o successfully submit it to the Store. All good there.
However, I'm trying to convert settings storage over to
ApplicationData.Current.LocalSettings.Values
instead of storing those in the registry. There's only a handful so it's ideal to convert.I've been trying to check with this, but it currently never seems to have access to this API. Above is what I get if I just try using the
ApplicationData.Current.LocalSettings.Values
line without checking.The Forms project currently has the
Microsoft.Windows.SDK.Contracts 10.0.19041.1
Nuget installed.From this blog post, it seems I should be able to do what I want but unsure what's keeping it from happening: https://blogs.windows.com/windowsdeveloper/2019/12/17/windows-10-sdk-preview-build-19041-available-now/