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.
**Update**
Ofcourse I meant CurrentAppDomain.GetAssemblies() instead of Assembly.GetReferencedAssemblies()
```
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.
**Update**
Ofcourse I meant CurrentAppDomain.GetAssemblies() instead of Assembly.GetReferencedAssemblies()