Home and Learn: C# NET Course

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:

File,  Save All menu

In Visual Studio 2017 and below, the default location for saved projects is the Documents folder in Windows. In the Documents folder you'll find another one called Visual Studio, followed by a year. In this folder there will be one called Projects. Your work is saved in this folder. In the 2019 version, you may have to create your own folder structure. We recommended you do this, earlier.

Now open up Windows Explorer (Hold down the Windows key on your keyboard, then press the letter "e"). Navigate to the folder location above, or to wherever you saved your work. In the image below, we've used Windows Explorer to navigate to the Visual Studio 2017 folder in Documents:

Visual Studio folders showing in Windows Explorer

Double click the Projects folder to see inside of it. Your should see a folder called ConsoleApplication1 or ConsoleApp1. Double click this folder and you'll see the following:

Folder View

Or this, in Visual Studio 2017:

Files inside of the Projects folder in Visual Studio 2017

So there's another folder called ConsoleApplication1 (or ConoleApp1). There are also two files, in earlier editions: one that ends in sln, and one that ends in suo. The sln file is the entire solution. (In later versions, there is no suo file.) Have a look at the Solution Explorer again:

Solution Explorer

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 the suo file click Tools > Folder Option in Windows Explorer. In Vista and Windows 7, you may have to click Organise > Layout > Menu Bar first. Click the View tab, and select the option for "Show hidden files and folders".)

Double click your ConsoleApplication1 or ConsoleApp1 folder, though, to see inside of it. You should see something like this:

Folders and files in a C# project

Now we have three more folders and three files. You can see the bin and obj folders in the Solution Explorer. Click ConsoleApplication1 or ConsoleApp1, second from the top. Then click the icon for Show all Files, circled in red in the image above:

All Files icon, C# 2012

The bin and obj folders will appear. Click the arrow symbols to see what's inside of these folders. You'll see something like this:

The bin and obj folders

Or this:

The Solution Explorer in Visual Studio 2017

The important one for us is the Debug folder under bin. You'll see why it's important in a moment. However, it's time to write some code!

back to the c# net contents page


Buy the Book of this Course

Email us: enquiry at homeandlearn.co.uk