예제 #1
0
        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()));
        }
예제 #2
0
 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()));
 }