2

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?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Alessandro
  • 1,046
  • 1
  • 11
  • 19

2 Answers2

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