asp.net mvc 3 installed but no templates in vs 2010 - visual-studio-2010

when creating a new project
and
no error messages in setup either !!
I have repeated the setup a few times to no avail
anyone else have the same issue or find an answer ?

Make sure you are targetting .NET 4

Make sure you have removed any previous Beta and RC versions before installing the ASP.NET MVC 3 RTM. Also try installing it by downloading the full installer. Once installed you should see the new templates when creating a new web application in Visual Studio. The templates appear when creating a new web application and not new web site.

I installed MVC 3 from the Windows Platform installer and it worked as expected, and templates were created.

I've been struggling with this issue for a couple of hours until i solved the problem by these steps:
Uninstall SP1 for Visual Studio 2010
Repair Visual Studio 2010
Reinstall SP1 for VS2010
I hope you save some time by taking these steps.

Related

Visual Studio thinks `Microsoft Web Developer Tools` is installed

Symptoms
Visual Studio syntax highlighter and Intellisense for Javascript and Razor views are not working.
There is no Web templates installed when creating a new project.
When I try to uninstall the web developer feature:
Add or remove Programs > Microsoft Visual Studio Professional 2015 > Modify
Microsoft Web Developer Tools is always checked. Even when I uncheck it and uninstall it, then restart the computer; the next time I still see it's checked:
What I did to solve this:
Running devenv.exe \resetuserdata Command to reset the user data.
Running devenv.exe \installtemplates to install the templates.
Repairing the Visual Studio.
Trying to uninstall and re-install the Web Developer Tools feature through the Visual Studio installer.
None have worked so far.
What I guess
I think Visual Studio thinks this feature is installed (through some registry keys probably) but the files are actually not installed.
Because whenever I try to Modify the installation of Visual Studio, the Microsof Web Developer Tools check box is not checked for the first second, then it is checked again after 1 second.
Question
Any suggestion on fixing this without uninstalling Visual Studio itself?
I was having the same problem and this is what worked for me:
Uninstall ASP.NET Web Tools from Control Panel
Download and install "Microsoft ASP.NET and Web Tools" extension from: https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935
Try this (in order):
Find Microsoft ASP.NET 5 RC1 ... in control panel / programs &
select modify
Select repair
Run devenv.exe /installvstemplates as administrator
Run VS as administrator
I had the same problem with Visual Studio 2015. I tried several things, but simply updating Microsoft ASP.NET seemed to do the trick.
Install ASP.NET 5 RC1, restart, and the issue should be resolved.
I didn't know I had this problem until I opened an MVC project with Razor views and didn't have syntax highlighter and Intellisense. I was lucky to read your question because the symptoms are the same and so is the conclusion. And unfortunately none of the answers solves the problem. But it did help me to find the answer, or what worked for me.
What did the trick was installing .NET Core 1.0.0 (DotNetCore.1.0.0.RC2-Runtime-x64 and DotNetCore.1.0.0.RC2-VS2015Tools.Preview1). I am pretty sure that this is enough to solve the issue. But since I tried all kinds of things, it is possible that another action is required. In that case, continue reading below the images.
When I start a new project this opens the following dialog:
Selecting ASP.NET Web Application (.NET Framework) opens the dialog with the projects I was looking for.
The syntax highlighter and Intellisense are also working for Razor views.
I do not know what caused the problem in the first place. Is the installation incomplete, is there a conflict with other software or did I do something that caused this?
Visual Studio 2012 is installed on my machine as well. I installed and uninstalled VS2015 (pro and community version) and then installed vs2015 Community on multiple volumes. On uninstalling I did use /Force and removed several folders manually.
Microsoft ASP.NET 5 RC Update 1 is also installed, but repairing this did not solve the issue. Also installing Asp.Net Web Framework tools 2015 didn't change anything. I copied templates to all template folders I could find (perhaps an issue with installing on multiple volumes?), ran devenv.exe with different parameters and deleted the '14' folder in my profile. None of this worked. Finally I installed .NET Core 1.0.0.

Error when creating ASP.NET MVC 3 project with xUnit: xunit.targets not found

I create an ASP.NET MVC 3 project and a unit test project using xUnit.net.
new project http://img841.imageshack.us/img841/38/newprojectsnt.png
But I got an error like this, and the unit test project is not created.
error http://img15.imageshack.us/img15/4725/errordp.png
Does anyone know how to fix it? I'm using Visual Studio 2010 Professional SP1, on Windows 8 Release Preview.
Thanks.
I had the same problem while using version 1.9.1 (Jul 4 2012 release). I uninstalled it and installed the version 1.9 (Jul 4 2012 release)and now it is working fine. I'm using Visual Studio 2010 Ultimate SP1 and Windows 7 Ultimate with SP1.
Sorry about this bug. We're planning to remove template support from 2.0 anyway, so this bug is going to go away.
Moving forward, we recommend people just create class libraries, and bring in xunit.dll via NuGet.

Visual Studio 2010 and Moss 2007 issues

Here is the scenario: My dev environment is a Windows 2003 virtual server, MOSS2007, VS 2008, SQL2005, .net Framework 3.5, Ajax 2.0.
We're in the process of upgrading user workstations to Win 7. So I decided to install VS 2010 alongside VS2008.
When I tried to open an existing VS2008 project that has custom web parts for the MOSS, it went through the upgrade wizard but at the end it failed but I did not note what the error was. Instead, I decided to recreate the project but when adding a new sharepoint webpart to my solution I received an error stating that SharePoint must be forst installed on the server. Well lah-di-dah, it is installed!!! So now what?
Ended up uninstalling VS2010, but that is not the point. Does VS2010 requires SharePoint 2010 to work, really? Can anyone elaborate on this. Thanks.
Eric
You tried to open up a Sharepoint solution on your new Windows 7 workstation? I doubt you've got Sharepoint installed on that workstation, so the error message might be correct when it's saying Sharepoint isn't installed.
But, you can use VS2010 to do some Sharepoint 2007 development, as written here: http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/bbced82a-a0e2-4a50-836a-3deb96c02de8
You still might want to have WSPBuilder installed though, even though VS2010 works pretty slick out of the box.
I've reinstalled both versions of VS and that soleved the problem. (not the most efficient method, however).

Unable to create a new MVC project in VS 2010 Beta 2 :( What the?

I'm trying to make a new ASP.NET MVC2 web site project, in Visual Studio 2010 Beta 2.
When I try, there is no ASP.NET MVC2 Web Application option. :(
Check this out...
alt text http://img528.imageshack.us/img528/9123/22433423.png
Hmm :( I tried reinstalling B2 (option I chose -> REPAIR).
And it's still not there (refer to that screenshot above).
Is there a way for me to manually add/register it back with my system, please?
ASP.NET MVC2 and Visual Studio 2010 Beta 2 are not compatible.
Best bet is to wait for the VS10 RC that should be coming out in the next month.
I haven't installed Visual Studo 2010, but what happens if you select .NET 3.5? Sorry if stating the obvious.
I fixed it - I had to 100% uninstall VS2010 B2 and the install it again. A reinstall OVER the existing copy did not work.
Fixed :)

I have just installed VS.NET 2003 which left my newer versions (2005/2008) crippled

I had Visual Studio 2008 and 2005 installed on my machine , unfartunately i have to install VS.NET 2003 on it to work on an old project. However after the installation now my VS2008 projects are not compiling as they are unable to resolve the .NET core namespaces. I trying reinstalling .NET 3.5 and VS2008 but it still giving me the same errors while building the solution.
anybody had such experience and any tip to solve it?
strangelly VS 2005 is working fine and it means its working fine with .NET 2.0 deployments however its causing issue with ASP.NET MVC project in VS 2008 which is certainly using .NET 3.5 and yes i have given a try to reinstallation as well
rifferte is correct in that it's safest to install in the other they are released.
Probably the best thing to do at this point is to repair your Visual Studio 2008 installation. You can do this through the Control Panel -> Add Remove Programs menu. This should fix the issues you are seeing.
I think you should try the advice here:
http://channa.gunawardena.org/2008/12/installing-visual-studio-2003-after.html
Basically - you actually have to reinstall the framework outside of VS. That being said - the best advice is to always install VS editions in the order they were released.

Resources