Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using Visual Studio 2015 RC (I know...)
The namespaces specified in my Views\Web.config file are not coming into Intellisense.
In web.config, I have the following:
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="Umbraco.Web" />
<add namespace="Umbraco.Core" />
<add namespace="Umbraco.Core.Models" />
<add namespace="Umbraco.Web.Mvc" />
<add namespace="umbraco" />
<add namespace="Examine" />
But in the text editor, I'm unable to use the Html extension methods those namespaces provide.
gives me red squiglies under Action, unless I manually include the namespace like this right in the view file:
I'm also unable to use the @model syntax, so for my strongly typed partial views, instead of using:
I have to use:
This happened both with a project I created in VS 2013 and then opened in VS 2015 RC, and with a project I created from scratch in VS 2015 RC.
I'm guessing it's a Visual Studio issue. Has anyone else seen this? What can I try to fix it?
I suggest you take a look at this post.
The reason is that VS2015 only supports MVC5 at the moment. Either upgrade umbraco to mvc5 or use VS2013 for intellisence.
Upgrading umbraco to MVC 5 causes issues for some people so its not recommended.
This issue still happens with the RTM as well. Upgrading to MVC5 is not really a good solution when it is not an option due to the age of the solution.
For now I have moved back to vs2013 as I just cant see past the red squiggles.
Comment author was deleted
Bump. Red squiggle hell here with VS2015, anyone get past it yet?
Looks like there's something you can do: http://umbraco.com/follow-us/blog-archive/2015/7/29/upgrading-your-umbraco-site-to-mvc5-and-webapi2/
But it looks like trouble for some (see comments on blog).
Also, similar topic here: https://our.umbraco.org/forum/getting-started/installing-umbraco/69478-intellisense-in-vs-2015
Not seeing it now.
Create doctype and template in Umbraco, then go to VS and right click the view file and include in project. Wait maybe 10 seconds and you will see the change.
Don't work this workaround...I tried with a project with U7.3.3 ported from vs2013 to 2015
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted