Instead of doing
```
assembly.GetTypes()
```
there should be a like of
```
foreach (var assemblyName in assembly.GetReferencedAssemblies()) {
// load types from assemblyName
}
```
That way you can simply reference assemblies with precompiled views and forget about the hassle.
Comments: I think this would affect delay loaded assemblies. Bin-placed assemblies are eagerly loaded, but doing this would also load GACed assemblies into the AppDomain earlier than necessary. Correct me if I'm wrong.
```
assembly.GetTypes()
```
there should be a like of
```
foreach (var assemblyName in assembly.GetReferencedAssemblies()) {
// load types from assemblyName
}
```
That way you can simply reference assemblies with precompiled views and forget about the hassle.
Comments: I think this would affect delay loaded assemblies. Bin-placed assemblies are eagerly loaded, but doing this would also load GACed assemblies into the AppDomain earlier than necessary. Correct me if I'm wrong.