AmpScm / SharpSvn

Subversion wrapped for .Net 4.0+ and .Net Core
Apache License 2.0
60 stars 19 forks source link

Neccessary files not copied to build directory (Nuget package) #17

Closed pde-cds closed 2 years ago

pde-cds commented 3 years ago

On build the referenced Resource SharpPlink-Win32.svnExe is not copied to the build directory when using the nuget package This file is need by SharpSvn.dll which is correctly copied to build folder.

Used package: https://www.nuget.org/packages/SharpSvn/1.14001.54 My Project is a .Net Framework 4.5

rhuijben commented 3 years ago

Thanks for reporting. Note that this file is not strictly necessary to use SharpSvn. This file is only used when using svn+ssh:// connections in plink mode. SharpSvn also has an libssh2 mode that doesn't require the file at all. (And all other repository access protocols don't require either of these)

pde-cds commented 3 years ago

I'm aware of this but inside the SharpSVN.dll the SharpPlink-Win32.svnExe is referenced as Resource so this reference must be copied to the build folder. image

klacol commented 3 years ago

Any solution on this?

klacol commented 3 years ago

I have tried this packages:

The errors stays the same.

klacol commented 3 years ago

The file SharpPlink-x64.svnExe is part of the nuget-package, but it is not extracted into the bin folder, when the nuget package is installed.

klacol commented 3 years ago

I have extracted the file SharpPlink-x64.svnExe manually from the nuget package and stored it in the root of my project. In the file properties, I have configured: "Copy always". Then the file is copied always to the bin folder and I can compile successfully.

This is a dirty workaround and does not fix the problem at the root cause.

rhuijben commented 2 years ago

This issue should now be fixed in the nuget package for 1.14001.132. There is a now a .targets file that should copy the file for you with your project.