c# - environment.specialfolder returns OneDrive in path but OneDrive not enabled -


i using environment.getfolderpath(environment.specialfolder.personal); open file in "users\username\saved games" (for example) when deployed see onedrive substituted after username , not know how stop on systems have onedrive hidden.

i read 1 can set filedialog.autoupgradeenabled=false stop dialog box widget using onedrive don't see equivalent here.

i used grpedit stop onedrive service on surface pro didnt want it. did not uninstall or delete onedrive. development system (vs 15) has onedrive turned off , can run program fine there. deployed program on surface pro keeps trying open data files through onedrive.

unless there way code correctly "onedrive" in string returned environment , if open fails remove phrase , try again.

more have set wrong in vs15 c# build


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -