|
Free
C# Tutorials
|
![]() |
home |
Stay
at Home and Learn
|
|||||
Saving your work in C# .NET |
||||||
|
When you save your work, C# will create quite a few folders and files for you. Click File from the menu bar at the top of the Visual C# Express software, then Save All:
When you click Save All, you'll see the following dialogue box appear:
You can type any name you like for your project. The default Name is ConsoleApplication1. Have a look at the location of the project, though: C:\Documents and Settings\kayspc\My Documents\Visual Studio 2005\Projects So it's going to be saved to the "My Documents" folder of this computer (XP). In the "My Documents" folder you'll find another one called Visual Studio 2005. In this folder there will be one called Projects. Before clicking the Save button, make sure there is a tick in the box for "Create directory for solution". Then click Save. Now open up Windows Explorer (Hold down the Windows key on your keyboard, then press the letter "e"), or just double click the "My Computer" icon on your desktop. Navigate to the folder location above. In the image below, we've used Windows Explorer to navigate to the Visual Studio 2005 folder (the 2008 version should be the same):
Double click the Projects folder to see inside of it. Your should see a folder called ConsoleApplication1. Double click this folder and you'll see the following:
So there's another folder called ConsoleApplication1. There's also two files: one that ends in sln, and one that ends in suo. The sln file is the entire solution. Have a look at the Solution Explorer again:
The one highlighted in blue at the top refers to the sln file. The suo file contains information about the Visual Studio environment - whether the plus symbols are expanded in the Solution Explorer, what other files you have open in this project, and a whole host of other settings. (If you can't see this file click Tools > Folder Option in Windows Explorer. Click the View tab, and select the option for "Show hidden files and folders".) Double click your ConsoleApplication1 folder, though, to see inside of it:
Now we have three more folders and two files. You can see the bin and obj folders in the Solution Explorer:
Click ConsoleApplication1, second from the top. Then click the icon for Show all Files, circled in red in the image above. The bin and obj folders will appear. Click the plus arrows to see what's inside of these folders:
The important one for us is the Debug folder under bin. You'll see why in a moment. However, it's time to write some code!
<-- Getting Started | Your First Line of C# Code --> <--Back to the C# .NET Contents Page View all our Home Study Computer Courses
|