Is there a start up process for a plugin?

I have some code that needs to run once when the plug-in is loaded.

How do you handle start up code in a ReSharper plug-in?

1 comment
Comment actions Permalink

You can just run it in the constructor of a [ShellComponent]. If you have other code that requires this to happen first, you can just pass the first class in as a constructor dependency to the second. If it's one time initialisation, you have to manage that yourself, caching a timestamp/version.


Please sign in to leave a comment.