hi, i'm storing data in xml files inside the app_data folder in VS2005. VSS keeps setting these files to read-only, which obviously means i can't write to them. if i exclude the files in VS, they get renamed to ..exclude, but i don't want this. does anyone have suggestions for how to deal with this situation? thanks tim
In article , tim@mackey.ie says... > hi, > i'm storing data in xml files inside the app_data folder in VS2005. > VSS keeps setting these files to read-only, which obviously means i > can't write to them. if i exclude the files in VS, they get renamed to > .exclude, but i don't want this. > does anyone have suggestions for how to deal with this situation? > thanks > tim > > Check them out first before writing to them? --Gene
Hi Tim, Did you exclude the files from the project or exclude the files from source control? I tried to exclude files in both ways, but it seems they didn't add the .exclude extension. If you need to edit this file, you can keep the files checked out. The readonly attribute of this files will be removed automatically. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
hi gene, i'm refering to writing to the files when the application is running, e.g. File.Write etc. i like to be able to check in the whole solution when i'm finished work for the day, and not have to worry about going back in to keep a few xml files checked out... thanks though. tim.
hi Kevin, thanks for the reply. i was trying to exclude the files from the Visual Studio project, and it does add .exclude to the filename when i do this. i'm not aware of a method to exclude files from source control. if i select the files, and click File > Source Control > Change Source Control, it only gives options for the solution and project. is there another way? thanks tim
Hi Tim, From File->Source Control->Exclude XXX from SourceControl, you can exclude individual files from source control. HTH. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
hi Kevin, that menu option isn't there. it must be a feature from VS team system or whatever it's called. i'm still using VSS 6. oh well, i guess i can live with keeping the xml files checked out manually. thanks anyway tim.
You're welcome. Yes, keeping the files checked out will do the trick. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."