asp.net MVC3 compiler options issue
===

I have a MVC3 project with two assemblies.
The first is MyProject.Core where there are my core classes defined as internal as the folowing example:

    [assembly: InternalsVisibleTo("MyProject.Web")]
    namespace MyProject.Core.Entities
    {
        internal class MyCoreClass
        {
           // code omitted
        }
    }

the second assembly is my web project:

    namespace MyProject.Web
    {
         // this namespace contains all my models, controllers, etc...
    }

I used the "InternalsVisibleTo" directive in the Core to allow the Web project "MyProject.Web" access the internal classes (and related methods/properties).

The issue is that when I Publish the application all Razor Views are not compiled in the MyProject.Web.dll so from View I cannot access anything derived from internal classes in Core due to protection level.

Is there a way to Compile/Publish the application so the Views will be included in the MyProject.Web namespace? Or is there another way to access internal classes from Views? Thanks. 