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