2
Vote

ModuleInfo constructor not cross-platform safe

description

The constructor for Microsoft.Practices.CompositeUI.Configuration.ModuleInfo is not cross-platform safe:
 
this.assemblyFile = assembly.CodeBase.Replace("file:///", "").Replace('/', '\');
 
Something like this would be better:
 
Uri uri = new Uri (assembly.CodeBase);
this.assemblyFile = uri.LocalPath;

comments