Visual Studio 2015 MVC application template missing - asp.net-mvc

In Visual Studio 2015 when I want to create MVC application there is no MVC option like below
Also when I open a .cshtml file look like below (not formatting, not coloring, not intellisense)
I tried below suggestions but doesn't resolve
Install web developer tools by Visual Studio setup modification
Change .net framework version from project screen
devenv.exe /resetuserdata
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache files
How can I solve ?

Try update web tools in visual studio 2015 - I had the same problem

Maybe you have selected the wrong file editor.
How to set other editor:
Click with your right mouse button on the View/HTML-page.
Click on: Open with...
Click on HTML editor (see image below)
Set the good editor as default:
Click on Set as Default (image below)
This problem can occur by clicking on an other editor and clicked by Set as Default.

Related

Visual Studio 2019 not showing 'View in Browser' option

I'm taking a course in HTML & CSS that requires Visual Studio 2019. I've written the exact script shown in the video over and over but there is no option to 'View in Browser'. I have no previous experience with JavaScript and very little Visual Basic. I've never used visual studio before.
I've uninstalled and reinstalled VS several times with the same problem.
Please help me!!
One of the examples I'm asked to type:
There is no option to 'View in Browser when right clicking or clicking the File tab.
I tried the solutions offered for VS 2017 but they did not work.
My laptop is a fairly new HP with Windows 10 installed.
Below is what comes up when I right click on the script.
enter image description here
If your HTML file is part of a project in Visual Studio, then here is one way to view your file in a browser.
Right-click on the project name in the Solution Explorer window
Select View > View in Browser
You may need to manually change the URL in your browser to get to your HTML file.

Self created templates not shown in the "New Project" dialog in the Visual Studio 2019

I have created a C++ template with certain configurations in visual studio 2019, which is saved as a .zip file in the default ProjectTemplates folder.
However, when I open the New Project dialog, I couldn't find my new template, the dialog only shows me 3 options under the left Recent templates tag which is not what I want, and I can't find my own template in the right Scoll-down menu.
Please tell me how to create a new project from self-created template.
By updating my VS 2019 to professional edition, I managed to see my templates in the New project list. I am not extremely sure about the reason, just give a hint for this issue.

Codesmith generator 8.0, VS 2019 right click context menu does not have manage output option for .csp files

We upgraded to CodeSmith 8.0 from 5.2. We are using Visual Studio 2019.
I was able to upgrade the codesmith .cst templates. The right click menu on Visual studio 2019 solution explorer doesn't show Manage outputs, generate output or any of codesmith right click options for .csp files
It shows the right click options in windows explorer for .csp files but not for VS 2019.
See the two screenshots. Do I need to do anything special for the options to show up on VS 2019?
Right click menu from Windows explorer. There are code smith options when I right click on the .csp file
Visual Studio 2019
I work at CodeSmith Tools.. Microsoft broke the world with VS2019 and we are currently blocked by VSIX changes in VS2019 where Roslyn bin folder dependencies are not being deployed within the VSIX. This makes testing / development even more difficult. Until a fix is out we can't resume development of VS2019 as we can't even debug it :.

No Add Controller on menu and can't add a View either in MVC 4.5

I just downloaded the new nopCommerce 3.2 MVC 4 application.
When I open the solution in Visual Studio,
I can't add a Controller : there is no "Controller...." option from the "Add" menu.
There is also no "Add View" when I right click inside of a Controller.
It seems to be treating all the projects in the solution as "Web Forms".
I think is has something to do with the last Windows update. It changed something.
I have the latest updates on Visual Studio.
Anyone have any idea how I can fix this?
Thanks
UPDATE : Solved. Need to install this update :
[ASP.NET and Web Tools 2013.1 for Visual Studio 2012][1] : [1]: http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
You need to add {E3E379DF-F4C6-4180-9B81-6769533ABE47} as 'the first GUID' to in your project .csproj. You may not need to update your Visual Studio.
Refer to Context menu to Add Controller/View missing
Just two steps
1)Update your Visual studio 2013
2) unload your project from solution explorer then Reload it again.

Visual studio - MVC Find usages of DisplayTemplate/EditorTemplate

How can I find usages of single let's say editor template in Visual studio? Or maybe in other direction how can I goto template which is rendered with EditorFor?
There is one workaround/help. If you have Visual Studio 2013 and Web Essentials installed you can CTRL+click anywhere on the page and the menu like this pops up.
If you click Inspect you can click on any element on page and then you cursor in Visual Studio moves to corresponding View/PartialView/DisplayTemplate/...
Mads Kristensen post on Web essentials 2013

Resources