StorageFile Async usage in a NON Metro application

前端 未结 4 574
庸人自扰
庸人自扰 2020-12-16 23:24

I am trying to create an instance of StorageFile in my class library...

var localFolder = ApplicationData.Current.LocalFolder;
StorageFile destinationFile =          


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-16 23:55

    It must be a long time since the post when I After adding references:
    System.Runtime.WindowsRuntime.dll
    System.Threading.Tasks.dll

    and targeting windows 8 in project file:

      
        8.0
      
    

    Mentioned above example can be compiled in VS.

提交回复
热议问题