StorageFile Async usage in a NON Metro application

前端 未结 4 581
庸人自扰
庸人自扰 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:49

    What worked for me is to "manually" add the TargetPlatformVersion

    
      8.0
    
    

    and in Item group add the following

    
      
      
      
    
    

    Then the project should compile normaly.

提交回复
热议问题