/// <summary> /// 获得启动参数 /// </summary> /// <param name="model"></param> /// <returns></returns> private string GetStartArgs(ApplicationInfoModel model) { string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Application", model.Path, $"{model.MainModule}"); string result = string.IsNullOrEmpty(model.RunParams) ? $"{path}" : $"{path} {model.RunParams}"; return(result); }
/// <summary> /// 获得启动参数 /// </summary> /// <param name="model"></param> /// <returns></returns> private IEnumerable <string> GetCommands(ApplicationInfoModel model) { var result = new List <string> { #if DEBUG $"cd \"bin\\Debug\\netcoreapp3.1\\Application\\{model.Path}\"", #else $"cd \"Application\\{model.Path}\"", #endif $"{model.MainModule} {model.RunParams}" }; return(result); }