【发布时间】:2017-08-21 17:18:27
【问题描述】:
根据本教程: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh758325.aspx?f=255&MSPPError=-2147217396
我写了以下函数:
private async void WriteToFile()
{
StorageFolder folder =
Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile sampleFile =
await folder.CreateFileAsync("sample.txt", CreationCollisionOption.ReplaceExisting);
}
但是,如果我运行它,我会看到以下错误:
Exception thrown: 'System.ArgumentException' in mscorlib.ni.dll
Use of undefined keyword value 1 for event TaskScheduled.
为什么?我该如何解决这个问题?
【问题讨论】:
标签: c# windows-phone