/// <summary> /// Trying of loading for DTE2 context /// </summary> /// <param name="core">Entry point of core library</param> /// <param name="dte2">Unspecified EnvDTE80.DTE2 from EnvDTE80.dll</param> /// <returns>true value if library exists and successfully loaded</returns> public bool tryLoad(IEntryPointCore core, object dte2) { this.core = core; this.dte2 = dte2; return(init(true)); }
/// <summary> /// Trying of loading for Isolated environment /// </summary> /// <param name="core">Entry point of core library</param> /// <param name="sln">Full path to solution file</param> /// <param name="properties">Global properties for solution</param> /// <returns>true value if library exists and successfully loaded</returns> public bool tryLoad(IEntryPointCore core, string sln, Dictionary <string, string> properties) { this.core = core; solutionFile = sln; this.properties = properties; return(init(true)); }
/// <summary> /// Initialize library /// </summary> /// <param name="lib"></param> protected void initLib(Assembly lib) { EntryPoint = Instance <IEntryPointCore> .from(lib); Event = (IEvent)EntryPoint; Build = (IBuild)EntryPoint; Settings = config.LibSettings; Version = Instance <Bridge.IVersion> .from(lib); }
/// <summary> /// Trying of loading for Isolated environment /// </summary> /// <param name="core">Entry point of core library</param> /// <param name="sln">Full path to solution file</param> /// <param name="properties">Global properties for solution</param> /// <returns>true value if library exists and successfully loaded</returns> public bool tryLoad(IEntryPointCore core, string sln, Dictionary<string, string> properties) { this.core = core; solutionFile = sln; this.properties = properties; return init(true); }
/// <summary> /// Trying of loading for DTE2 context /// </summary> /// <param name="core">Entry point of core library</param> /// <param name="dte2">Unspecified EnvDTE80.DTE2 from EnvDTE80.dll</param> /// <returns>true value if library exists and successfully loaded</returns> public bool tryLoad(IEntryPointCore core, object dte2) { this.core = core; this.dte2 = dte2; return init(true); }