I sent a .sln file (instead of .cpp file) to a friend; will he be able to read the source code from it or is it just a file used from Visual Studio to load projects?
Asked
Active
Viewed 2,054 times
2
-
5A .sln contains no project source. Open it in Notepad and see. – Alex K. Jun 08 '15 at 16:32
-
Short answer: No. The `.sln` file contains only the paths to the containe projects. No source code at all. – πάντα ῥεῖ Jun 08 '15 at 16:32
2 Answers
5
No, SLN files only store the project settings. You should send him the whole project in a compressed file.
Just so you know, the recommended way to share code with other people is using a version control system, like GIT.

Thiago Duarte
- 941
- 9
- 21
0
No, a sln file only contains references to your files. So at least he now knows the name of your file ;)

David van rijn
- 2,108
- 9
- 21