mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +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:
@@ -235,11 +235,19 @@ namespace PepperDash.Essentials
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
string assyVersion = string.Empty;
|
||||||
var assy = Assembly.LoadFrom(fi.FullName);
|
var assy = Assembly.LoadFrom(fi.FullName);
|
||||||
var ver = assy.GetName().Version;
|
var ver = assy.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false);
|
||||||
var verStr = string.Format("{0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Build, ver.Revision);
|
if (ver != null)
|
||||||
|
{
|
||||||
|
AssemblyInformationalVersionAttribute verAttribute = ver[0] as AssemblyInformationalVersionAttribute;
|
||||||
|
assyVersion = verAttribute.InformationalVersion;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
|
||||||
|
|
||||||
assyList.Add(fi.FullName, assy);
|
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
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user