I downloaded the sources and built the executables and plugins. I did not change any code, just configured the App.config file. I put all the binaries in the hook directory of the repository. I used the included sample batch file for the postcommitemailhook but when it runs it fails to find a good plugin. It finds the assembly and postcommitemailhook but it fails in this call: if (pluginType.IsAssignableFrom(type))... But types are postcommitemailhook and postcommithook so I don't see why it fails?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-08-18
2 years later… I have exactly the same problem.
I got it to work for a while by moving the plugin dll into another folder and adjusting the config file accordingly.
Now, after moving the entire solution, and creating a post-build tasks which copies the dll, it fails again.
pluginType.IsAssignableFrom(type) returns false when it clearly shouldn't.
I'm stuck!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded the sources and built the executables and plugins. I did not change any code, just configured the App.config file. I put all the binaries in the hook directory of the repository. I used the included sample batch file for the postcommitemailhook but when it runs it fails to find a good plugin. It finds the assembly and postcommitemailhook but it fails in this call: if (pluginType.IsAssignableFrom(type))... But types are postcommitemailhook and postcommithook so I don't see why it fails?
2 years later… I have exactly the same problem.
I got it to work for a while by moving the plugin dll into another folder and adjusting the config file accordingly.
Now, after moving the entire solution, and creating a post-build tasks which copies the dll, it fails again.
pluginType.IsAssignableFrom(type) returns false when it clearly shouldn't.
I'm stuck!