Skip to content

Commit

Permalink
Fix FileLoadException
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Mar 3, 2020
1 parent fae757a commit 4f13064
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public IStringLocalizer Create(string baseName, string location)
throw new ArgumentNullException(nameof(location));
}

var assemblyName = new AssemblyName(location);
var assembly = Assembly.Load(assemblyName);
var assembly = Assembly.GetExecutingAssembly();
var resourcesPath = Path.Combine(PathHelpers.GetApplicationRoot(), GetResourcePath(assembly));
string resourceName = null;

Expand Down

0 comments on commit 4f13064

Please sign in to comment.