using MyModule.Models; NOT FOUND

Topics: Customizing Orchard, Writing modules
Nov 16, 2011 at 6:38 PM

Trying to compile a Module called Pryor.Seminars.

I have all my model classes in the Models folder.

namespace Pryor.Seminars.Models

I include this using statement in Migrations.cs
using Pryor.Seminars.Models;

I get a compile error saying the namespace Models could not be found in Pryor.Seminars. Am I missing a reference or using statement? in Migrations.cs file.

I have also made sure to <Compile Inlcude="" for all my Model.cs classes in the Pryor.Seminars.csproj file.

I get this error quite often in Webmatrix and Visual Studio when building Orchard modules. 

Am I suppose to make my model classes into dlls?? and add them as  references?? I don't understand this error. Sometimes it happens. Sometimes it doesn't

Help.

Coordinator
Nov 16, 2011 at 10:09 PM

I'm pretty sure you forgot to add something to your project file when that happens, or you forgot to save. Or your usage of both WM and VS is confusing dynamic compilation and'it's not taking your changes.