I am currently trying to use ASP.NET Core 1.0 RC2. I created it as a .NET Framework project (as opposed to a .NET Core project) and added links to our Models library using the .NET Framework 4.5 using a project link:
"frameworks": { "net46": { "dependencies": { "Project.Core": { "target": "project" }, "Project.DataAccess": { "target": "project" }, "Project.Encryption": { "target": "project" }, "Project.Models": { "target": "project" }, "Project.Resources": { "target": "project" } } } },
Now, adding the model directive to my view, the following error occurs:
@model System.Collections.Generic.List<Project.Models.User> The type or namespace name 'Project' could not be found (are you missing a using directive or an assembly reference?) public class _Views_Home_Index_cshtml : Microsoft.AspNetCore.Mvc.Razor.RazorPage<System.Collections.Generic.List<Project.Models.User>> The type or namespace name 'Project' could not be found (are you missing a using directive or an assembly reference?) public Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<System.Collections.Generic.List<Project.Models.User>> Html { get; private set; }
It is also displayed in intellisense: cannot resolve the tag 'Project.Models.User' and cannot resolve the symbol 'model'
I added a link to the project, added a using statement ... This error occurs. Why is this?
source share