mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
moving to updated informational version and setting up to unzip plugin cplz files into a folder one at a time before loading
This commit is contained in:
parent
830b83f99f
commit
e6fb9cd1eb
1 changed files with 11 additions and 3 deletions
|
|
@ -235,11 +235,19 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
try
|
||||
{
|
||||
string assyVersion = string.Empty;
|
||||
var assy = Assembly.LoadFrom(fi.FullName);
|
||||
var ver = assy.GetName().Version;
|
||||
var verStr = string.Format("{0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Build, ver.Revision);
|
||||
var ver = assy.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false);
|
||||
if (ver != null)
|
||||
{
|
||||
AssemblyInformationalVersionAttribute verAttribute = ver[0] as AssemblyInformationalVersionAttribute;
|
||||
assyVersion = verAttribute.InformationalVersion;
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
assyList.Add(fi.FullName, assy);
|
||||
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Loaded plugin file '{0}', version {1}", fi.FullName, verStr);
|
||||
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Loaded plugin file '{0}', version {1}", fi.FullName, assyVersion);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue