cake-contrib / Cake.Svn

Cake AddIn that extends Cake with Subversion features using SharpSvn
https://cake-contrib.github.io/Cake.Svn/
MIT License
13 stars 10 forks source link

Cake.Svn crashing under macOS #65

Open AntonPetrov83 opened 6 years ago

AntonPetrov83 commented 6 years ago

Trying to invoke SvnCheckout() results in:

Error: System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.NotImplementedException: The method or operation is not implemented.
  at <Module>.___CxxCallUnwindDtor (System.MonoFNPtrFakeClass pDtor, System.Void* pThis) [0x0000a] in <ba92b1f964e8492da3fdf31959d8165f>:0 
  at <Module>..cctor () [0x00011] in <ba92b1f964e8492da3fdf31959d8165f>:0 
   --- End of inner exception stack trace ---
  at Cake.Svn.Internal.SvnSharpClient..ctor () [0x00000] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at (wrapper remoting-invoke-with-check) Cake.Svn.Internal.SvnSharpClient:.ctor ()
  at Cake.Svn.SvnAliases+<>c.<.cctor>b__21_0 () [0x00000] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at Cake.Svn.SvnTool`1[TSettings].GetClient () [0x00000] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at Cake.Svn.Checkout.SvnCheckouter.Checkout (System.Uri repositoryUrl, Cake.Core.IO.DirectoryPath path, Cake.Svn.Checkout.SvnCheckoutSettings settings) [0x00060] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at Cake.Svn.SvnAliases.SvnCheckout (Cake.Core.ICakeContext context, System.Uri repositoryUrl, Cake.Core.IO.DirectoryPath path, Cake.Svn.Checkout.SvnCheckoutSettings settings) [0x0001c] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at Cake.Svn.SvnAliases.SvnCheckout (Cake.Core.ICakeContext context, System.Uri repositoryUrl, Cake.Core.IO.DirectoryPath path) [0x00000] in <210b2ee1b0404a5bb7fa8670fa93197f>:0 
  at Submission#0.SvnCheckout (System.Uri repositoryUrl, Cake.Core.IO.DirectoryPath path) [0x0000c] in <e3ebfe38d8f24ee690648fe75b90a0ad>:0 
  at Submission#0.<<Initialize>>b__0_2 () [0x00016] in <e3ebfe38d8f24ee690648fe75b90a0ad>:0 
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass17_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <1a12afcf649f4de8ab5d15d82d4f6310>:0 
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass20_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <1a12afcf649f4de8ab5d15d82d4f6310>:0 
  at Cake.Core.CakeTask+<Execute>d__43.MoveNext () [0x00066] in <1a12afcf649f4de8ab5d15d82d4f6310>:0 

I guess it is caused by SharpSvn.dll incompatability.

pascalberger commented 6 years ago

As far as I know SharpSVN, which this addin depends on, doesn't support mono and therefore won't run on MacOS.