You need to edit the .csproj file. Add the following ProjectTypeGuids node (add only the ProjectGuid node below).
<ProjectGuid>{28AD1627-3486-48C2-A045-EFFBB441582B}</ProjectGuid> <ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
Save the file, then open it again in Visual Studio. VS2012 then does some conversion, but in the end everything is fine. There is a tool.
Depending on what you are doing (Razor Generator?), You will need some links (System.Web, System.Web.WebPages, System.Web.Mvc, System.Web.Razor, System.Web.Routing ...) .
This has been tested with VS2012.
In Visual Studio 2013, I also had to replace the following line in the .csproj file because it indicated a malfunction:
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
Nenad
source share