Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

[SDKContracts] ApplicationData.Current.LocalFolder #12

@myokeeh

Description

@myokeeh

I'm trying out Microsoft.Windows.SDK.Contracts v10.0.18362.2002-prevew on a .NET Framework 4.8 Windows Forms app and can't seem to get past this exception for code like below

private async static void Test()
{
        StorageFolder localFolder = ApplicationData.Current.LocalFolder;
        StorageFile sampleFile = await localFolder.GetFileAsync("dataFile.txt");
        IPropertySet values = ApplicationData.Current.LocalSettings.Values;
        //…
}

I've attempted adding System.Runtime, System.Runtime.WindowsRuntime, System.Runtime.WindowsRuntime.UI.Xaml and downgrading specifically to 4.1.2.0

Exception:

Could not load file or assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions