SharpSvn is a binding of the Subversion Client API for .Net 2.0-4.0+ applications contained within a set of xcopy-deployable dll's
Questions tagged [sharpsvn]
309 questions
38
votes
3 answers
Does anyone know of a good C# API for Subversion?
I'm looking to make calls out to a subversion repository, but I would like to write it in C#. Does anyone know of any good libraries?

mr mo
- 1,721
- 3
- 18
- 17
31
votes
6 answers
How to get latest revision number from SharpSVN?
How to get latest revision number using SharpSVN?

Tom Smykowski
- 25,487
- 54
- 159
- 236
28
votes
4 answers
SVN Repository Authentication using SharpSVN
Can any one tell me how to authenticate users(SVN users) for a repository using SharpSVN Library.
That repository should only be committed by those users.
Thanks

Amila Weerasekara
- 281
- 1
- 3
- 4
14
votes
1 answer
SharpSvn: Getting repository structure and individual files
I am trying to build a simple repository browser into a web application and have been looking into using SharpSvn to help.
I can find all the usual physical commands, like update, commit, that would actually make changes to the repository or a…

Chris Meek
- 5,720
- 9
- 35
- 44
12
votes
2 answers
Using SharpSvn to retrieve log entries within a date range
I'm using SharpSvn to interact with my svn repository via C# code. I am using this code to retrieve svn log entries:
Collection logitems;
var uri = new Uri("http://myserver/svn/foo/bar.txt");
client.GetLog(uri, out…

Chris Farmer
- 24,974
- 34
- 121
- 164
12
votes
2 answers
How to check if file is under source control in SharpSvn?
Hi I use C# and SharpSvn library. I would like to check if file is under source control before adding it with SvnClient.Add. When I do it on file that already is under SVN than I get error : "is already under version control".

Tom Smykowski
- 25,487
- 54
- 159
- 236
12
votes
0 answers
How to correctly retrieve SVN-Info from relative URI in SVN-external using SharpSvn
I have a Powershell Cmdlet, which creates SVN-Branches from the trunk via SharpSvn.
The repository contains externals with and without revision/pegRevision explicitly set.
In the branch, all externals with no revision set should be to their HEAD…

Simon D.
- 4,451
- 2
- 28
- 57
10
votes
4 answers
SharpSvn and C# source code samples
Can somebody please suggest a good place to look for source code examples of how to use the SharpSvn library?

Matt Johnson
- 101
- 1
- 1
- 3
10
votes
1 answer
SVN Repository Authentication with SharpSVN - Credentials not working
I have the following code in C#:
1. public static void Main(string[] args) {
2. Uri repository = new Uri("https://svnserver:port/svn/Src/trunk");
3. using (SvnClient client = new SvnClient()) {
4. …

Adam Levitt
- 10,316
- 26
- 84
- 145
9
votes
3 answers
SharpSVN and C# Problem
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…

Sam F
- 621
- 1
- 8
- 16
9
votes
3 answers
SharpSVN Example Program Crashes
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,…

Sam F
- 621
- 1
- 8
- 16
9
votes
3 answers
Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format
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…

Ice_Drop
- 452
- 1
- 9
- 19
9
votes
2 answers
SharpSVN read ALL filenames
still a bit of a n00b on SharpSVN, I'm looking to get some simple code to open up an SVN repository, and read (at least) the full path of all files in a specific folder.
Lets say that this folder is \trunk\source
I'm not looking to checkout or…

KevinDeus
- 11,988
- 20
- 65
- 97
7
votes
1 answer
SharpSVN - Server certificate verification failed
I use SharpSVN and I add a folder to the subversion. Then I try to commit it and I get this exception:
SharpSvn.SvnRepositoryIOException: OPTIONS of 'https://sth.com/svn/blah/Documents': Server certificate verification failed: certificate has…

user2173353
- 4,316
- 4
- 47
- 79
6
votes
2 answers
How to get list of changed files in SharpSVN (like svn diff --summarize --xml)
I'm trying to get a list of changed files from SharpSVN. I can get the data I need on the command line like this:
svn diff -r :HEAD --summarize --xml
Can somebody point me to the right spot in the SharpSVN maze to replicate this? Ideally,…

Peter Loron
- 1,156
- 10
- 15