示例#1
0
 public RustProjectLauncher(RustProjectNode project)
 {
     Utilities.ArgumentNotNull("project", project);
     string currConfig = project.GetProjectProperty(ProjectFileConstants.Configuration);
     RustProjectConfig projectConfig = (RustProjectConfig)project.ConfigProvider.GetProjectConfiguration(currConfig);
     debugConfig = Configuration.Debug.LoadFrom(new[] { projectConfig.UserCfg });
     if (debugConfig.StartAction == Configuration.StartAction.Project &&
         project.GetProjectProperty("OutputType") != "exe")
     {
         throw new InvalidOperationException("A project with an Output Type of Library cannot be started directly.");
     }
     this.environment = new LauncherEnvironment(project, debugConfig, projectConfig);
 }
示例#2
0
        public RustProjectLauncher(RustProjectNode project)
        {
            Utilities.ArgumentNotNull("project", project);
            string            currConfig    = project.GetProjectProperty(ProjectFileConstants.Configuration);
            RustProjectConfig projectConfig = (RustProjectConfig)project.ConfigProvider.GetProjectConfiguration(currConfig);

            debugConfig = Configuration.Debug.LoadFrom(new[] { projectConfig.UserCfg });
            if (debugConfig.StartAction == Configuration.StartAction.Project &&
                project.GetProjectProperty("OutputType") != "exe")
            {
                throw new InvalidOperationException("A project with an Output Type of Library cannot be started directly.");
            }
            this.environment = new LauncherEnvironment(project, debugConfig, projectConfig);
        }
示例#3
0
 public ReleaseLauncher(LauncherEnvironment env)
 {
     this.env = env;
 }
示例#4
0
 public MsvcDebugLauncher(LauncherEnvironment env)
 {
     this.env = env;
 }