public bool IsValidForRemoteHosting(IExecutionHandler handler) { string location = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); location = Path.Combine(location, "mdhost.exe"); return(handler.CanExecute(new DotNetExecutionCommand(location))); }
public bool CanExecute (IExecutionHandler handler) { if (runCheckDelegate != null) return runCheckDelegate (handler); else if (cmd != null) return handler.CanExecute (cmd); else return false; }
protected override bool OnCanRun(IExecutionHandler executionContext) { FilePath assemblyFileName = GetAssemblyFileName(); if (assemblyFileName.IsNull) { return(false); } if (Project is DotNetProject dnp) { if (Project.HasFlavor <DotNetCoreProjectExtension> ()) { return(executionContext.CanExecute(new DotNetCoreExecutionCommand(Path.GetDirectoryName(assemblyFileName), assemblyFileName, ""))); } else { return(executionContext.CanExecute(new DotNetExecutionCommand())); } } return(true); }
public bool CanExecute(IExecutionHandler handler) { if (runCheckDelegate != null) { return(runCheckDelegate(handler)); } else if (cmd != null) { return(handler.CanExecute(cmd)); } else { return(false); } }
protected override bool OnCanRun(IExecutionHandler executionContext) { FilePath assemblyFileName = GetAssemblyFileName(); if (assemblyFileName.IsNull) { return(false); } var command = new DotNetCoreExecutionCommand( assemblyFileName.ParentDirectory, assemblyFileName.FileName, string.Empty); return(executionContext.CanExecute(command)); }
public IExecutionHandler GetDefaultExecutionHandler(ExecutionCommand command) { if (executionHandlers == null) { executionHandlers = new List <ExtensionNode> (); AddinManager.AddExtensionNodeHandler("/MonoDevelop/Core/ExecutionHandlers", OnExtensionChange); } foreach (TypeExtensionNode codon in executionHandlers) { IExecutionHandler handler = (IExecutionHandler)codon.GetInstance(typeof(IExecutionHandler)); if (handler.CanExecute(command)) { return(handler); } } return(null); }
public bool IsValidForRemoteHosting (IExecutionHandler handler) { string location = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly ().Location); location = Path.Combine (location, "mdhost.exe"); return handler.CanExecute (new DotNetExecutionCommand (location)); }