Can I use a text file to set svn: externals in SharpSvn's SetProperty () method?

My goal is to set up more than one external (links) project so that everyone who checked out the project gets all external resources at the same time. This can be achieved in SVN.EXE as - propset svn: externals -F svnexternalsfile.

How can I specify an external file in the SetProperty () method in SharpSvn?

+2


source to share


1 answer


SharpSvn does not handle reading the file for you; it just lets you set properties.



using(SvnClient client = new SvnClient())
{
   string val = File.ReadAllText("C:\\My\\file.txt");

   client.SetProperty("C:\\WorkDir", SvnPropertyNames.SvnExternals, val);
}

      

+3


source







All Articles