conrad2010
asked on
ASP.NET MVC Open Existing Project
How can I open an existing MVC project that does not have the .sln file?
When I open it as a website, the context menu's are not correct (i.e. right clicking on the Views folder does not allow me to add Views from the context menu)
When I open it as a website, the context menu's are not correct (i.e. right clicking on the Views folder does not allow me to add Views from the context menu)
Create a blank solution and add the project(s) to this solution.Arun
ASKER
@Arun:
a little more instructions (or a link) on how to do it would be great, am not too familiar with sln files, projects, etc...
a little more instructions (or a link) on how to do it would be great, am not too familiar with sln files, projects, etc...
Click on File->New Project. In the New Project window choose Visual Studio Solutions under Other Project Types. You'll see 'Blank Solution' on the right side. See attached image for details.
Arun
image1.png
Arun
image1.png
ASKER
@Arun:
Ok, thx for the screen shot, got the blank project .sln file with this in it:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11 D3-BF4B-00 C04F79EFBC }") = "MvcApplication1", "MvcApplication1\MvcApplic ation1.csp roj", "{C06AB0C5-1775-4125-B13C- 559FA94171 40}"
EndProject
Global
GlobalSection(SolutionConf igurationP latforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfi gurationPl atforms) = postSolution
{C06AB0C5-1775-4125-B13C-5 59FA941714 0}.Debug|A ny CPU.ActiveCfg = Debug|Any CPU
{C06AB0C5-1775-4125-B13C-5 59FA941714 0}.Debug|A ny CPU.Build.0 = Debug|Any CPU
{C06AB0C5-1775-4125-B13C-5 59FA941714 0}.Release |Any CPU.ActiveCfg = Release|Any CPU
{C06AB0C5-1775-4125-B13C-5 59FA941714 0}.Release |Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProp erties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Now how can I use that for my existing MVC application?
You mentioned moving Projects in it... can you provide a sample by any chance?
Ok, thx for the screen shot, got the blank project .sln file with this in it:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11
EndProject
Global
GlobalSection(SolutionConf
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfi
{C06AB0C5-1775-4125-B13C-5
{C06AB0C5-1775-4125-B13C-5
{C06AB0C5-1775-4125-B13C-5
{C06AB0C5-1775-4125-B13C-5
EndGlobalSection
GlobalSection(SolutionProp
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Now how can I use that for my existing MVC application?
You mentioned moving Projects in it... can you provide a sample by any chance?
Firstly, copy the MVC project into the folder where you created your blank solution.Once you create the blank solution, right click on the solution file in visual studio solution explorer and choose 'Add Existing Project'. Now browse to the location of the solution file and choose the .csproj or the .vbproj (as the case may be) and click on ok. This should add the MVC project to your solution.Arun
ASKER
@Arun:
ok, following the steps, but there are no .csproj or .vbproj files either...
ok, following the steps, but there are no .csproj or .vbproj files either...
Please post back a screenshot of your MVC application when you open it as a website.Arun
ASKER
@Arun:
The Solutions Explorer of VS2008 (MVC1.0) when I open the MVC Application as a website...
Untitled.jpg
The Solutions Explorer of VS2008 (MVC1.0) when I open the MVC Application as a website...
Untitled.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Arun:
Fantastic, thanks for the help... this got me puzzled but it's already restored.
Much appreciated!
Fantastic, thanks for the help... this got me puzzled but it's already restored.
Much appreciated!