January 8, 2019
Program.cs
. This is the source code of the application you are actually considering.Build
→ Build solution
. What happened?Debug
→ Start without Debugging
. What happened?You will extensively compile and run programs in this class. Instead of having to click twice, I highly recommend that you start now memorizing shortcuts:
With Alt + F4 (to exit any program), that makes 3 shortcuts already! You can find a complete list at http://visualstudioshortcuts.com/, I will try to introduce some of useful shortcuts as we progress.
Since you can not store files permanently on the lab’s computer, you will have to store them either
If you chose the “remote” option (i.e., using a server), do not install a synchronization software (like Google Drive and Sync, Box’s app, etc.) on the lab computer: it will likely not work, due to University rules. Instead, create the structure / project / files on the computer during the lab, and upload them (using the web-interface) at the end of the lab. Make sure to always upload your files before unloging from the computer.
Now that you know where to store your files, create a folder for this class, and a subfolder for the first lab. You organization should look like the following:
└───csci1301
└── 01_lab
├── Welcome.zip
└── Welcome
├── Welcome.sln
└── Welcome
├── Welcome.csproj
├── Properties
│ └── AssemblyInfo.cs
├── Program.cs
├── obj
│ └── Debug
│ ├── Welcome.pdb
│ ├── Welcome.exe
│ ├── Welcome.csprojResolveAssemblyReference.cache
│ ├── Welcome.csproj.FileListAbsolute.txt
│ ├── TempPE
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ └── DesignTimeResolveAssemblyReferencesInput.cache
├── bin
│ └── Debug
│ ├── Welcome.vshost.exe.manifest
│ ├── Welcome.vshost.exe.config
│ ├── Welcome.vshost.exe
│ ├── Welcome.pdb
│ ├── Welcome.exe.config
│ └── Welcome.exe
└── App.config
You do not need to check that everything is here, just note that you have multiple folders, and that there are many files in the Welcome
folder, not only the .sln
and the .cs
: make sure you copy all the structure when you want to backup or share your program! In this case, copying the Welcome
foldel is enough.
Make sure you read the syllabus.
This part gathers some references for you to install Visual Studio on your own computer, regardless of your operating system. It is strongly encouraged that you do so, especially if you want to continue in a CS / IT degree, but not mandatory. The instructions are not really detailed: feel free to look on the Internet, ask your classmates or instructor for details or help.
There are plenty of ways this can go wrong, but make sure you read and followed those instructions carefully before asking for help.