ASP.NET MVC 2 and VS 2010 Beta 2 - visual-studio-2010

I have a VPS and I would like to be able to run ASP.NET MVC 2 apps that were built in Visual Studio 2010 Beta 2.
Which ASP.NET MVC 2 do I need to install (is it Preview 2?) and where can I get the installer for it since all I can find are MVC 2 RC for VS 2008?

You can install Framework 3.5 SP1 on the server, and copy System.Web.Mvc.dll to the bin directory, then it will work. You can extract the DLL from the GAC of the machine you have Visual Studio 2010 on. (Perhaps you have some other references too, that you will need to copy).

Related

Use web api 2 in visual studio 2010

How can I use web api 2 in Visual Studio 2010.
Is there any way I can use web api 2 in VS 2010?
Can somebody please help or guide?
If you want to include Framework version 4, you can follow these steps. In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:
1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.
2 - Add a new project and select MVC 4
( on this screen there is no Web API template which is where many users may expect to see it )
3 - Select the Web API Template
You can see the answer here
But in your case, you need to install framework version 4.5. Each version of Visual Studio prior to Visual Studio 2010 is tied to a specific .NET framework. Visual Studio 2010 and beyond allow for targeting of prior framework versions but cannot be used for future releases. You must use Visual Studio 2012 in order to utilize .NET 4.5.
But one user has found a scenario where we can use framework version 4.5 in VS 2010, please see the answer of David Woodward here. If you can install VS 2012, it will be much easier since you don't need to download and install anything else.

ASP.Net 5 Beta 8 xproj cannot be opened

I just installed the new release of ASP.Net 5 beta 8. I ran DotNetVersionManager-x64.msi and then WebToolsExtensionsVS14.msi. I tried to open a simple app that worked in beta 7 and it won't load the project with a message
This project is incompatible with the current edition of Visual Studio:
Microsoft Visual Studio Community 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079
I then tried to create a new ASP.Net 5 web project and got this:
The project file 'c:\users\myfolder\documents\visual studio 2015\Projects\WebApplication3\src\WebApplication3\WebApplication3.xproj' cannot be opened.
The project type is not supported by this installation.
I have uninstalled and reinstalled the DotNetVersionManager and WebToolsExtensionsVS14 with the same result.
Fixed it by doing this
Close VS, then delete the folder at %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache and restart – Sayed Ibrahim Hashimi
Thank you #SayedIbrahimHashimi
The easiest way to get started building applications with ASP.NET 5 is to install the latest version of Visual Studio 2015 (including the free Community edition).
Install Visual Studio 2015
Be sure to specify that you want to include the Microsoft Web Developer Tools.
Install ASP.NET 5.
This will install the latest ASP.NET 5 runtime and tooling.
Enable the ASP.NET 5 command-line tools. Open a command-prompt and run:
dnvm upgrade
This will make the default .NET Execution Environment (DNX) active on the path.
On Windows 7 and Windows Server 2008 R2 you will also need to install the Visual C++ Redistributable for Visual Studio 2012 Update 4.
You are all set up and ready to write your first ASP.NET 5 application!
Reference...

install mvc 4 on server without visual studio

I'm getting a build server up and running (Windows Server 2008 R2).
The app will be MVC 4.
Do I need to install MVC3 and MVC4 onto the box? Or just MVC4?
I don't want to install a whole bunch of Visual Studio kerfuffle on the build server though. Which the web platform installers seem to be all wrapt up in.
Cheers for any MVC 4 wisdom!
If your application is going to use MVC 4 then all you need to install is ASP.NET MVC 4. You don't need to install Visual Studio. The MVC installer checks if VS is installed and if it is it adds the project templates to VS 2010. Otherwise it deploys only the runtime assemblies into the GAC.

Will Visual Studio 2010 SP1 (beta) break asp.net MVC 3 (RTM)?

I've got VS 2010 (no service pack) and asp.net MVC 3 installed. I would like to try out the VS2010 SP1 beta but afraid that it will break my MVC 3 projects.
Does anyone know if i can install SP1 beta right on top of MVC 3 RTM?
It looks like this is being discussed here:
Installation of Visual Studio 2010 Service Pack 1 Beta and Asp.net MVC 3

Having MVC 2 with both VS 2008 and VS 2010

I had VS 2010, which gave me MVC 2 out of the box. Then, I installed VS 2008 Professional Edition.
I wanted to do MVC 2 with VS 2008. I had to download MVC 2 for VS 2008 SP1, which I did. Now, when I try to install MVC 2 for VS 2008 SP1, it tells me that I already have MVC 2 installed in another location and I must remove that first. I guess it is referring to the MVC 2 installation that VS 2010 gave me.
How do I let both of them co-exist?
Remove MVC which was installed with VS2010 (it's avaible in add/remove in control panel) and install MVC 2 RTM. It's newer then MVC that you get with VS 2010 and it should work with both versions of VS.

Resources