Sunday 15 May 2011

.net - Publishing in visual studio 2012 for windows form -


I have a simple windows is made as to the application to create an Excel file and log some debugging information.

This time Excel file to make my code

  xlWorkBook.SaveAs (filepath, Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, MisValue, misValue, misValue, MySQL, MySQL);   

And while some debugging information is logged in the code for these

  (System.IO.StreamWriter file = new System.IO.StreamWriter ( " Log file. Log ", true))   

I have published the application to test the location of both the files and installed it in my machine. I log file has been my Excel file in the Documents folder, while C: \ Users \ ME \ AppData \ Local \ Apps \ 2.0 \ METYACXG.8BW \ 3MBVM2YL.M9V \ bill..tion_974a70d1e552787b_0001.0000_c89a52caddc0075b

I wonder whether this is the standard way or best practice?

The document (or my document) is the folder

  C: \ User \ user_account \ AppData \ local \ app 2.0 \   

ClickOnce on Vista is the file cache for applications and later OS.

Your log files and any other continuous application data files that you may be creating such as RAN or XML configuration files, they have the name of the application in the local application data should be saved in a custom folder in the folder:

  C: \ Users \ USER_ACCOUNT \ AppData \ local \ your_app_name \   

Local Avenger's location data folder has been used:

  System.Environment.GetFolderPath (System.Environment.Speci AlFolder.LocalApplicationData);   

In your application network where user accounts are then being deployed on the roaming profile, then you must use a custom folder on the application name in the roaming folder on which is:

  C: \ Users \ USER_ACCOUNT \ AppData \ roaming \ your_app_name \   

and has been using:

 < Code> System.Environment GetFolderPath (System.Environment.SpecialFolder.ApplicationData); Also see   

and

.

No comments:

Post a Comment