public DefaultRustLauncher(RustProjectNode project) { Utilities.ArgumentNotNull("project", project); this.project = project; string currConfig = this.project.GetProjectProperty(ProjectFileConstants.Configuration); projectConfig = (RustProjectConfig)this.project.ConfigProvider.GetProjectConfiguration(currConfig); debugConfig = Configuration.Debug.LoadFrom(new[] { projectConfig.UserCfg }); }
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); }