visual sourcesafe - How to write to file in VSS from c# code? -


i have project visual source safe (vss) , need append lines ".sql" file. trying use obvious code:

using (streamwriter sw = file.appendtext(lblsourcefile.text)) {     sw.writeline("text here"); } 

but getting "file access" error because file not checked out in vss. there way programmaticlly check-out file edit , check in when finish ? links found using vssdatabaseclass, , don't how add reference sourcesafetypelib dll , use vssdatabaseclass...

you can add ssapi.dll, can found in installation folder of vss, reference , can use sourcesafetypelib. here can see sample.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -