We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this code:
public static Assembly ReadExistingAssembly(AssemblyName name) { var currentDomain = AppDomain.CurrentDomain; var assemblies = currentDomain.GetAssemblies(); foreach (var assembly in assemblies) { var currentName = assembly.GetName(); if (currentName.Name == name.Name && currentName.CultureInfo.Name == name.CultureInfo.Name) { return assembly; } } return null; }
It is possible that name.CultureInfo == null. A fix is pretty easy:
if (string.Equals(currentName.Name, name.Name) { if (name.CultureInfo == null || string.Equals(currentName.CultureInfo.Name, name.CultureInfo.Name)) { return assembly; } }
The text was updated successfully, but these errors were encountered:
And since name.CultureInfo can be null, it might be wise to also check currentName.CultureInfo for null as well.
Sorry, something went wrong.
I ran into when trying to include the 'EntityFramework.SqlServerCompact' assembly.
Temporary fix was to exclude the assembly. But would be nice if the null check can be added.
8fdee5c
Fixed in 1.0.
confirmed it's working now, thanks!
No branches or pull requests
In this code:
It is possible that name.CultureInfo == null. A fix is pretty easy:
The text was updated successfully, but these errors were encountered: