sharpsvn

How do I use a custom Certificate Authority in SharpSvn without installing the certificate

有些话、适合烂在心里 提交于 2019-12-12 03:42:21
问题 I am trying to access a subversion repository using SharpSvn. The repository is only available via https and the machine uses its own private certificate authority (don't worry about the security here, I trust the authority). I have the Certificate Authority's public root certificate, however due to user access rights I cannot install the certificate into the certificate store. If I use subversion directly, I can add: servers:global:ssl-authority-files=/path/to/cacert.crt servers:groups

Check local directory is a working copy before updating from svn

时光怂恿深爱的人放手 提交于 2019-12-11 14:50:16
问题 I am working on extracting svn repository using c# programming. I have added sharpsvn dll to my project and wrote following code string localFolder= @"C:\Users\Desktop\LocalFolder\Dev\Websites\Service"; SvnClient client = new SvnClient(); SvnUriTarget target = new SvnUriTarget(@"http://svn.user.com/svn/websites/Branches/InternalServices"); SvnInfoEventArgs info; client.GetInfo(target, out info); //Specify the repository root as Uri //Console.WriteLine("Repository version: {0}", info.Revision)

Populate treeview from list in C#

孤街浪徒 提交于 2019-12-11 08:21:19
问题 I've made some researches and I found some topic close to my problem, but none of them solved it. populate treeview from a list of path http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.aspx http://social.msdn.microsoft.com/Forums/en/winforms/thread/dae1c72a-dd28-4232-9aa4-5b38705c0a97 SharpSvn: Getting repository structure and individual files I want to make a repository browser for my SVN folder so that the user can choose one folder and it will be return to a text box.

Setting commit author in SharpSvn .NET library throws SvnRepisitoryIOException exception

家住魔仙堡 提交于 2019-12-11 07:58:20
问题 If you have experience with using the SharpSvn .NET library, I could use your expertise in setting the commit author during an SVN commit. I've tried a few things, but they all throw an SvnRepisitoryIOException unless the user is saved in TortoiseSVN. However, I want to use different user credentials depending on the situation. If I've saved a user's default credentials, TortoiseSVN remembers them in Settings > Saved Data > Authenticated Data, and is able to commit a file using that

SharpSVN error in VS2010

社会主义新天地 提交于 2019-12-11 03:45:39
问题 I'm trying to get SharpSVN to work with a VB.NET project I'm working on in VS2010. I've added SharpSVN.dll to my project references but the following error appears when I try to load the site: Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and

Using the current HTTP request identity as the default credentials for SharpSVN

萝らか妹 提交于 2019-12-10 18:15:11
问题 I’m trying to call RemoteCreateDirectories in SharpSVN through a web app and want the credentials to be that of the logged on user. Can this be done implicitly or is the username and password required as per the example below? using (var svnClient = new SvnClient()) { svnClient.Authentication.DefaultCredentials = new NetworkCredential(@"aaa\bbb", "ccc"); svnClient.LoadConfiguration(repoName); svnClient.RemoteCreateDirectories(uris, args); } I don’t want to explciitly request credentials from

Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format

£可爱£侵袭症+ 提交于 2019-12-10 12:51:16
问题 I just downloaded the 64bit version of the SharpSVN here's the link! When I run my application, error message displayed. I have searched the net on how to fix this issue but I'm failed. I tried the following solution: setting the Configuration Manager to x64 as suggested on this post setting the startup config on this response also tried downloading x86 and set the config manager to x86. tried this also, adding assembly link I'm using Win7, 64bit,.net 4.0. 回答1: Solve it. Change my platform to

SharpSVN Example Program Crashes

℡╲_俬逩灬. 提交于 2019-12-08 16:19:54
问题 I downloaded the SharpSVN example they give to try and test it out but I get this error when I try and run it. System.BadImageFormatException {"Could not load file or assembly 'SharpSvn, Version=1.4999.376.29668, Culture=neutral, PublicKeyToken=d729672594885a28' or one of its dependencies. An attempt was made to load a program with an incorrect format."} After I downloaded I went to load the project, did the requested conversion with no errors then just tried to run it. Haven't been able to

SharpSVN and C# Problem

一笑奈何 提交于 2019-12-08 16:05:13
问题 When trying to add SharpSVN to my C# project, compiling with SharpSVN related calls gives me this error: FileLoadException was Unhandled Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. What I did was add the References from the downloaded SharpSVN zip file and added the using SharpSvn; When I compile that it works fine, but when I add: string targetPath = "https://bobl/svn

SharpSVN get post-commit-hook with 'SvnLookClient'

无人久伴 提交于 2019-12-07 16:16:57
问题 I'm trying to figure out how to get the commit message for a particular revision. It looks like SvnLookClient is probably what I need I found some code here on SO that looks like what I need but I seem to be missing something.. Code I found (here on so): using (SvnLookClient cl = new SvnLookClient()) { SvnChangeInfoEventArgs ci; //******what is lookorigin? do I pass the revision here?? cl.GetChangeInfo(ha.LookOrigin, out ci); // ci contains information on the commit e.g. Console.WriteLine(ci