Execute action commands in sequence

I need to create a plugin which runs a series of actions one after another on solution load.

This is what I have got to so far

[SolutionComponent]
public class AutoRunAnalysis
{
public AutoRunAnalysis(IProductCommandLine productCommandLine)
{
if (productCommandLine.IsKeyDefined("AutoRunAnalysis"))
{
// Run actions in order, one after another
// 1. Restore nuget packages
// 2. Inspect code issues in solution
}
}

[CommandLineSwitch("AutoRunAnalysis", 1)]
public class CmdAutoRunAnalysis
{
}
}

What API should I use to call actions/commands and how can I execute them in sequence?

Please sign in to leave a comment.