Trying to see if LoadFrom is more stable than LoadFile, this is discussed in many blogs.. also fixed a file reference in the project.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1893 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-22 04:48:08 +00:00
commit 6459dd2bf3
3 changed files with 3 additions and 3 deletions

View file

@ -229,7 +229,7 @@ namespace Greenshot.Helpers {
foreach (string pluginFile in pluginFiles) {
LOG.DebugFormat("Checking the following file for plugins: {0}", pluginFile);
try {
Assembly assembly = Assembly.LoadFile(pluginFile, Assembly.GetExecutingAssembly().Evidence);
Assembly assembly = Assembly.LoadFrom(pluginFile, Assembly.GetExecutingAssembly().Evidence);
PluginAttribute[] pluginAttributes = assembly.GetCustomAttributes(typeof(PluginAttribute), false) as PluginAttribute[];
if (pluginAttributes.Length > 0) {
PluginAttribute pluginAttribute = pluginAttributes[0];