Changeset 2480


Ignore:
Timestamp:
3/13/2012 6:28:51 AM (2 years ago)
Author:
lowjoel
Message:

Fixed the provision of persistent stores for plugins. Assemblies for which we are unsure whether it is a plugin should not have a persistent store created for them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/PluginInfo.cs

    r2475 r2480  
    6161 
    6262            //Get the persistent store for this assembly 
    63             PersistentStore = Host.Instance.PersistentStore.GetSubsection( 
    64                 new Guid(((GuidAttribute)Assembly.GetCallingAssembly(). 
    65                     GetCustomAttributes(typeof(GuidAttribute), false)[0]).Value).ToString()); 
     63            if (AssemblyInfo.Guid != Guid.Empty) 
     64                PersistentStore = Host.Instance.PersistentStore.GetSubsection( 
     65                    AssemblyInfo.Guid.ToString()); 
    6666        } 
    6767 
Note: See TracChangeset for help on using the changeset viewer.