Automate ReSharper Code Cleanup externally


We have written a custom Code Generator that gives us some great productivity benefits for certain areas within our system.   Seeing that the whole team has valid ReSharper licenses, we would like to automate the process of running the ReSharper Code Cleanup (using our predefined settings) from our Code Generator.  This way we can regen code without having to worry about formatting the code afterwards.  This must be possible using R#'s Open API, but having not done anything like this before, I was wondering if you could provide me some pointers/samples that would show me how I could do this?  Remember, the idea is to run this externally from VS.  One of the future plans is to make our CodeGenerator run within VS itself, but until such time, we would like to run this externally from VS.  Would this be possible.


Please sign in to leave a comment.