ERROR: System.Environment.SpecialFolder' does not contain a definition for 'CommonApplicationData'

前端 未结 2 1480
醉梦人生
醉梦人生 2021-01-17 02:41

I have the code to save a file in a folder in directory

string timestamp = DateTime.Now.ToString(\"MM-dd-yyyy.HH-mm-ss\");
                var file = File.Cr         


        
2条回答
  •  孤城傲影
    2021-01-17 03:20

    Given you are asking about a .NET Windows Phone application as per the tags

    I think your problem is that a .NET Windows Phone application does not have direct access to the file system; it can only access IsolatedStorage this is by design.

    I would quote a Microsoft source for this but I can't seem to find one!

    EDIT See this article from MSDN

提交回复
热议问题