Join Walt Ritscher for an in-depth discussion in this video Creating a Visual Studio project, part of Visual Studio 2010 Essential Training.
- View Offline
- Exercise Files
In this movie, I will spend a few minutes looking at how to create a basic Visual Studio project. Elsewhere in this series, I have details on creating the different kinds of project templates, and provide movies showing how to create an application from start to finish. My goal in this movie is to show what happens the first time you run Visual Studio, and how to create a basic project. How are you going to start Visual Studio? Okay, that was rhetorical question. You know what to do. In Windows 7, I am going to go to the Start menu, and then I am going to look in All Programs, and I am going to find my copy of Visual Studio.
That's relatively easy to do because I have just installed it on this computer and Windows 7 is highlighting that folder in yellow. I will open this up, and I will find my Microsoft Visual Studio 2010 shortcut. Before I click on this link though, I would like to add a shortcut to my Start menu. That's really easy to do in Windows 7, by right-clicking and choosing Pin to Start menu. The next time I go to the Start menu, it's available up here at the top.
Let's run the application. I will click on the link, and after about 3 or 4 seconds, Visual Studio starts and shows me the Start screen. There are times when Visual Studio needs administration privileges to complete a task. Here in Windows 7, that is easy to accomplish. I am going to go back to the Start menu, go up to my shortcut, and I am going to right-click and choose Run as administrator.
And now I want you to look on the title bar of these two versions of Visual Studio. The one in front says Administrator in parentheses. That's how I know that this is running with elevated privileges. For today though, I only need to one copy of Visual Studio, so let me close this top window. There is one more thing I would like to show you before we create our first project. Visual Studio and .NET ship with dozens of additional tools. Let's go back to the Start menu, and go to All Programs and then back into the Microsoft Visual Studio 2010 folder.
You can see, in here there are lots of sub-folders. There is one for Microsoft Windows SDK tools. There is one for Team Foundation Server tools. Down here is the Visual Studio tools folder. As you can see, there are lots of tools to work with. The one I want to look at is this one here: Visual Studio Command Prompt. For our convenience, there is this special command prompt hiding here in the Start menu. I am going to run it and see what it does. Look at the top of this window. Up here, it says Setting environment for using Microsoft Visual Studio 2010 x86 tools.
What this does is it brings into scope all of the different programming tools that are part of the Visual Studio family. Now I can go out to the prompt and run those from a command line. So I am going to go up to the top folder by typing in cd\. And then I am going to type in the name of one of these tools. There is a tool called MSBuild for instance. When I press Enter, it shows that it found MSBuild, and now it's asking me for additional information.
For another example, here is a tool called Visual Basic Compiler. Again, I will press Enter. It finds the tool, and since I didn't provide the rest of the settings, it just shows me the help file. We are going to be using this tool occasionally throughout this course. For now though, let me close the command window. Finally, we are ready to create our first project. There are a couple of ways to do that from this screen. One, I can click on this New Project hyperlink. Or if I would rather, I can go up to File > New, and then choose this Project menu.
Today, I am going to use the hyperlink. So I am going to go back to the Start screen and click New Project. Visual Studio shows me a variety of different project templates. I have more details about these later in the course. There are Visual Basic templates up here, C# templates, and many more. Today I am going to look in the Visual C# and then the Windows section, and I am going to create a basic Console Application. I will leave the settings as the default, and then I am going to click on OK.
After a few seconds, Visual Studio loads the project template and shows me my Code window. I would write the code, I would compile the code, I would run the application, but those are topics for another movie. That was easy, wasn't it? Coming up in the next movie is the thrilling story on how to use the Solution Explorer over here on the right edge of the screen.
- Creating a Visual Studio project
- Building the user interface
- Binding to an RSS feed
- Coding with IntelliSense
- Creating rich Internet applications with Silverlight
- Building Windows applications with Windows Forms
- Integrating with SQL Server
- Working with Microsoft Office applications
- Understanding extensibility in Visual Studio
- Working with data, ADO.NET and datasets
- Using source control
Skill Level Intermediate
Silverlight 3 Essential Trainingwith Walt Ritscher6h 50m Beginner
1. Getting Started
2. Exploring the Visual Studio Workspace (IDE)
3. Building a Simple Application
4. Exploring the Code Editors
5. Working with Code
6. Understanding the Project Types
7. Digging Into Your Data
8. Debugging Your Application
9. Testing Your Application
10. Deploying Your Application
11. Working with Source Control
12. Integrating with Microsoft Office Applications
Making an Excel 2010 add-in5m 21s
13. Extending Visual Studio
14. Configuring Your Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.