You cannot do this directly, but you can include a small executable as part of your solution with a reference to the method you want to call.
Once the solution is built, run it to run the executable that you just compiled, and you should be there.
source
share