Skip to content

LibSvnSharp.Native.dll not found #3

Description

@frklan

Hi

This looks like an awesome project!

I've been trying to use the library in a small console application that only prints the svn version like so:

namespace ConsoleClient
{
  class Program {
    static void Main(string[] args) {
      Console.WriteLine("Using LibSvnSharp");
      Console.WriteLine(SvnClient.Version.ToString());
      Console.WriteLine("done!");
    }
  }
}

However I get the following error when trying to run it

Using LibSvnSharp

Unhandled Exception: System.EntryPointNotFoundException: Unable to find an entry point named 'svn_client_version' in DLL 'LibSvnSharp.Native.dll'.
   at LibSvnSharp.Interop.Svn.svn_client.__Internal.svn_client_version()
   at LibSvnSharp.Interop.Svn.svn_client.svn_client_version() in C:\source\svn\LibSvnSharp\LibSvnSharp\src\NativeBindingsGenerator\bin\Debug\Generated Files\SvnUnmanagedApi.cs:line 5424
   at LibSvnSharp.SvnClient.get_Version() in C:\source\svn\LibSvnSharp\LibSvnSharp\src\LibSvnSharp\SvnClient.cs:line 39
   at ConsoleClient.Program.Main(String[] args) in C:\source\svn\LibSvnSharp\LibSvnSharp\src\ConsoleClient\Program.cs:line 14

To reproduce, do like so

  1. download, build and install the apr, apr-iconv and the apl-expat components from the apache web site and libexpat from github.
  2. update the paths in NativeBindingsGenerator/appconfig.cs to point to the correct locations
  3. run NativeBindingsGenerator.exe
  4. build LibSvnSharp
  5. build the ConsoleClient.exe test

I got no error running NativeBindingsGenerator and it created the following files

AprUnmanagedApi.cs
AprUnmanagedApi.dll
AprUnmanagedApi.pdb
AprUnmanagedApi.xml
LibSvnSharp.Interop.Apr-symbols.cpp
LibSvnSharp.Interop.Svn-symbols.cpp
Std.cs
Std.dll
Std.pdb
Std.xml
SvnUnmanagedApi.cs
SvnUnmanagedApi.dll
SvnUnmanagedApi.pdb
SvnUnmanagedApi.xml

As we can see; LibSvnSharp.Native.dll is missing!

I would appreciate if you have minute to guide me how to getting this to work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions