asp.net mvc - Visual Studio 2012 can't resolve namespace even though DLL reference seems fine -


I have tried to create an MVC 5 project by building MVC 4 project in a studio 2012 and installing MVC 5 through NJet.

I can fix this.

I have another DLL, Sitkor. Attempt to add context to MVCDLL, which I can see, was made against MVC 5.1.0. The DLL reference is added correctly, and it seems that there is no .NET framework conflict (which is where I have seen this problem in the past).

I have a user statement using my code: -

  Sitecore.Mvc.Presentation;  

IntelliSense raises it up okay ... even allowing me to complete the 'presentation'.

However, when I create it, I get the following error: -

  Type or name space name 'Sitkor' could not be found (Do you remember the usage director or assembly reference? 

  • Visual Studio 2012 - What's the problem? Update 4
  • MVC 4 web application (initially)
  • MVC 5.1.0 newsletter package
  • Sitcom 7.2 - Update 2 (from where Sitecore.Mvc.DLL )
  • On my machine .NET 4.5.2 installed.

I am using a different version of Sitecore.Mvc.DLL, which That's targeted. NET 4.5.1 looks like the mscorelib reference in the reflection that does not tell all the details at all.

Now I need to target my web app to .NET 4.5.1, which means that I need to follow the steps here to choose it.

Thanks, and @ Khan, sorry to help, and for everyone.


Comments