You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you attempt to resolve an AssemblyNameReference with a null Version field, a null reference exception is thrown. This only happens when the assembly does not appear within the specified search directories.
The exception is thrown in BaseAssemblyResolver.IsZero(). Its worth noting that AssemblyNameReference.Parse() returns a reference with a null version field if no version is specified in the fullname parameter. Is this by design?
The text was updated successfully, but these errors were encountered:
The NRE is fixed. I need to investigate whether it's ok to make AssemblyNameReference.Parse set a zero version instead of null, wrt all the existing code.
If you attempt to resolve an AssemblyNameReference with a null Version field, a null reference exception is thrown. This only happens when the assembly does not appear within the specified search directories.
eg.
GlobalAssemblyResolver.Instance.Resolve(AssemblyNameReference.Parse("System.Core"));
The exception is thrown in BaseAssemblyResolver.IsZero(). Its worth noting that AssemblyNameReference.Parse() returns a reference with a null version field if no version is specified in the fullname parameter. Is this by design?
The text was updated successfully, but these errors were encountered: