public static Task InitialiseWithCommandsAsync(this TexoEngine engine, SimpleIoc container) { TexoConfiguration.Builder configuration = TexoConfiguration.CreateDefault().ToBuilder(); string solutionFile = container.GetInstance <ISolutionPathProvider>().GetPath(); if (!string.IsNullOrEmpty(solutionFile)) { configuration.Environment.Variables.Add(VsVariableNames.SOLUTION_FILE, solutionFile); } configuration.Runtime.Commands.AddRange(new[] { ReferenceCheckCommand.BuildConfiguration(), CommandLineCommand.BuildConfiguration(), FileManagerBuilder.BuildCommand(), NugetManagerBuilder.BuildCommand(), CalcCommand.BuildConfiguration(), //ClipboardBuilder.BuildCommand(), FunctionsBuilder.BuildCommand(), CodeBaseSearchBuilder.BuildCommand(), SpinSportBuilder.BuildCommand() }); return(engine.InitialiseAsync(configuration.ToImmutable())); }
public static Task InitialiseWithCommandsAsync(this TexoEngine engine) { return(engine.InitialiseAsync( ReferenceCheckCommand.BuildConfiguration(), CommandLineCommand.BuildConfiguration(), FileManagerBuilder.BuildCommand(), NugetManagerBuilder.BuildCommand(), CalcCommand.BuildConfiguration(), ClipboardBuilder.BuildCommand(), FunctionsBuilder.BuildCommand(), //CodeBaseSearchBuilder.BuildCommand(), SpinSportBuilder.BuildCommand())); }