There is nothing special about Visual Studio in terms of zipping files. Do the following.
1) In Visual Studio's Solution Explorer, right click the solution node and select 'Open in Folder Explorer' (or equivalent).
2) You are now in Windows Explorer in the solution directory (e.g. you'll see mysolution.sln
as a file). Step back 1 directory to the solution directory itself (e.g. mysolution
).
3) (Optional) Clean up unneeded files and folders including \bin
, \obj
, *.user
.
4) Right click the directory and zip it up.
5) Send the zip file to the instructor and they can open it in Visual Studio.
If you get a zip file and want to open it in Visual Studio you must first extract the files. Note that by default Windows will show you the zip file as a regular folder. This is wrong and attempting to open the solution within it using Visual Studio will fail (as will most programs) because it isn't actually a file on disk.
1) Right click the zip file and select the option to extract the archive.
2) (Optional) Specify the destination directory if your archive program supports it.
3) You should now have the solution directory wherever you extracted the archive.
4) Go into the solution directory and double click on the solution file (.sln
). It will open in Visual Studio and everything should reload.