public override bool Execute() { if (StartDebug) Debugger.Launch(); RegisterServices(this, CurrentDirectory); _resolver = new RuntimeAssemblyResolver(); _resolver.Initialize(); Name = Services.Services.GetService<IEnvironment>().Descriptor.Name; return true; }
public override bool Execute() { WrapServices.TryRegisterService<IFileSystem>(() => LocalFileSystem.Instance); WrapServices.TryRegisterService<IConfigurationManager>(() => new ConfigurationManager(WrapServices.GetService<IFileSystem>().GetDirectory(InstallationPaths.ConfigurationDirectory))); WrapServices.TryRegisterService<IEnvironment>(() => new MSBuildEnvironment(this)); WrapServices.TryRegisterService<IPackageManager>(() => new PackageManager()); WrapServices.RegisterService<RuntimeAssemblyResolver>(new RuntimeAssemblyResolver()); WrapServices.RegisterService<ITaskManager>(new TaskManager()); _resolver = new RuntimeAssemblyResolver(); _resolver.Initialize(); return true; }