Issue resolving @resource type when the resource class is in a different assembly to the view

This commit is to fix an issue with type resolution when the resource class lives in a separate assembly to the view.

This line of code, from StandAloneBuildManager, is intended to pull in any referenced assemblies from the assembly containing the view:

 var referenced = viewDefinition.ViewAssembly.GetReferencedAssemblies().Select(x => x.CodeBase).ToList();

However, the CodeBase properties of the AssemblyName objects is null in every case. Executing a ReflectionOnlyLoad on each referenced assembly allows the correct value to be retrieved. However this requires an additional change in the CreateCompilerParameters method of CompilationManager to prevent assembly references being added twice.

Hope this is the right way to fix the problem...

Regards
Jon