I have a new solution that is an ASP.NET MVC 2.0 application. I have added a porject to the solution which is a console application. The console namespace is foo, and it has a data repository called FooDataRepository which is a public class. I also have a public class in the foo namespace called FooLinkList, which is also public.
In the ASP.NET application, in the HomeController, I have added "using Foo" an everything compiles fine.
It's my Index.aspx that has the problem. When I run the app, I get the following error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'TweetLinkTimer' could not be found (are you missing a using directive or an assembly reference?)
Line 1: <%@ Import Namespace="Foo" %>
Line 2: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FooLinkList>>" %>
I have added a reference to Foo via Visual Studio, and have the "using" directive on the .CS files. I am not sure what else I have to do here. Foo.exe is in the bin directory for my ASP.NET MVC application.
The reason I have done this is because I don't want to have to copy over my data respository, which acts as the model for the MVC application, and that repository was already created for the console application. Any ideas as to what to do?