Answered by:
ASP.NET MVC 2 Projects

Question
-
I’m trying to work through a sample project. It inmstructs me to select File->New->Project->Other Project Types->Visual Studio Solutions->Blank SDolution.
But on my menu I don't have a selection for Other Project types.
Do I need a different versioin of Visual Studio 2010?
Harry T UlmerThursday, December 16, 2010 12:54 PM
Answers
-
Unit testing is not available in the Express version. You need at least the Pro version to get unit testing (the second project).
In VS 2003, the recommended technique was to create an empty solution first, then add projects to it. This was necessary due to some oddities with project/solution naming.
This is no longer required in VS 2005/2008/2010. Now when you create a project, Visual Studio automatically builds your solution. Then you can add other projects as Paul defined.
But I think you will continue to have problems following along in the book unless you at least get the Pro version. Otherwise you won't be able to use some of the features, such as unit testing.
Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!- Marked as answer by Paul Zhou Thursday, December 23, 2010 4:26 AM
Wednesday, December 22, 2010 3:30 PM -
I received another response regarding my version of Visual Web Developer. I havbe the express version and apparently Unit test is not available in the express version. I went through your steps and there is no choice for Unit Test.
Thanks.
Harry T Ulmer- Marked as answer by harrytu Wednesday, January 5, 2011 5:46 AM
Thursday, December 23, 2010 2:59 PM -
Express edition is limited version. Full version will have the Unit testing options.
- Marked as answer by harrytu Wednesday, January 5, 2011 5:46 AM
Wednesday, January 5, 2011 2:16 AM
All replies
-
You may want to try Visual Web Developer Express 2010 as demonstrated here:
http://www.asp.net/mvc/tutorials/getting-started-with-mvc-part1
Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!Thursday, December 16, 2010 4:10 PM -
There are many different Express versions of Visual Studio.
Do I understand correctly from your email that you have Visual C# express?
As per my prior post, I think you need Visual Web Developer Express (which is DIFFERENT from Visual C# express). Check this out:
http://www.microsoft.com/express/Web/
Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!Thursday, December 16, 2010 11:48 PM -
Express needs to be registered within 30 days. or else lot of menus will be greyed out.
Saturday, December 18, 2010 8:53 PM -
I've already registered it. But the menu item isn't greyed out, it doesn't appear at all.
It instructs me to select File->New->Project->Other Project Types->Visual Studio Solutions->Blank Solution
But "Other Project Types" is not one of the options.
Harry T UlmerSaturday, December 18, 2010 10:20 PM -
As per the link I provided, the instructions were:
"You can create applications using Visual Basic or Visual C#. For now, Select Visual C# on the left, then pick "ASP.NET MVC 2 Web Application."
It includes a screen shot to show where it is. It does not say "Other Projects".
If you use the link I provided in my first post and follow the instructions there, do you have an MVC template?
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!- Proposed as answer by Paul Zhou Tuesday, December 21, 2010 9:09 AM
Saturday, December 18, 2010 10:49 PM -
My problem is that I have the Express version of Visual Studio 2010 and according to the author of the bookm with the example I need the paid version.
Harry T UlmerTuesday, December 21, 2010 2:11 PM -
You need the paid version to do MVC?
Not according to the link I provided:
http://www.asp.net/mvc/tutorials/getting-started-with-mvc-part1
Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!Tuesday, December 21, 2010 3:46 PM -
I've already gone through those project.
The project I'm trying to build is from Steven Sanderson's book
Pro ASP.NET MVC 2 Framework and starts in chapter 4.I need to create an ASP.NET MVC 2 Solution that contains 3 projects.
The Solution Explorer looks like this:
Solution "SportStore" (3 projects)
SportsStore.Domain
.
.
.
SportsStore.UnitTest
.
.
.
SportsStore.WebUI
.
.
.Where SportsStore.Domain, SportsStore.UnitTest, and SportsStore.WebUI are
projects within the "SportsStore SDolution" and contain the associated subfolders and files. This is from the code that he provides for the book.I have found no way to create this structure with Visual Studio 2010 Express.
Thanks for your help so far.
Harry T UlmerTuesday, December 21, 2010 5:20 PM -
Hi Harry,
Welcome to MSDn Forum.
According to your description, your problem is about how to add a new or existing project to a solution.
Here the link may help you:
http://msdn.microsoft.com/en-us/library/cc296386(v=Expression.30).aspx
And I have a suggestion that the action how to add a project to a solution is easy, what we should understand is why and how to use the structure.
Hope this can resolve your problem.
Best regards,
Paul Zhou
Paul Zhou [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed as answer by Paul Zhou Wednesday, December 22, 2010 5:56 AM
Wednesday, December 22, 2010 5:56 AM -
My problem is how to create the solution to start with.
Harry T UlmerWednesday, December 22, 2010 12:52 PM -
Unit testing is not available in the Express version. You need at least the Pro version to get unit testing (the second project).
In VS 2003, the recommended technique was to create an empty solution first, then add projects to it. This was necessary due to some oddities with project/solution naming.
This is no longer required in VS 2005/2008/2010. Now when you create a project, Visual Studio automatically builds your solution. Then you can add other projects as Paul defined.
But I think you will continue to have problems following along in the book unless you at least get the Pro version. Otherwise you won't be able to use some of the features, such as unit testing.
Hope this helps.
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!- Marked as answer by Paul Zhou Thursday, December 23, 2010 4:26 AM
Wednesday, December 22, 2010 3:30 PM -
Hi Harry,
Now, .NET 4 provided a template of MVC 2 Web Application. ASP.NET MVC 2 is designed to work with both VS 2008 / .NET 3.5, as well as with VS 2010 / .NET 4. Supporting both versions means that you can start using it today without having to wait to upgrade to VS2010 / .NET 4.
After you ensure the base requires of .NET version, we do the action as below to use the existing template.
Click File->new project, then select Visual C#->Web, have you got some items in the middle? Have you seen the “ASP.NET MVC 2 Web Application”? If not, on the top, there is an item you can choose “.NET Framework 3.5” or “.NET Framework 4”. OK, click the submit button. Then there will be a chosen of ”Create Unit Test Project”, of course choose the “YES” so that it will build a test unit for you automatically. Now, you will get the solution. And you can add some projects else which you need to the solution.
Hope this can resolve your problem.
Best regards,
Paul Zhou
Paul Zhou [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Thursday, December 23, 2010 3:54 AM -
I received another response regarding my version of Visual Web Developer. I havbe the express version and apparently Unit test is not available in the express version. I went through your steps and there is no choice for Unit Test.
Thanks.
Harry T Ulmer- Marked as answer by harrytu Wednesday, January 5, 2011 5:46 AM
Thursday, December 23, 2010 2:59 PM -
Express edition is limited version. Full version will have the Unit testing options.
- Marked as answer by harrytu Wednesday, January 5, 2011 5:46 AM
Wednesday, January 5, 2011 2:16 AM