简体   繁体   English

是否可以从.sln文件读取/检索c ++源代码?

[英]Is it possible to read/retrieve a c++ source code from a .sln file?

I sent a .sln file (instead of .cpp file) to a friend; 我向朋友发送了一个.sln文件(而不是.cpp文件)。 will he be able to read the source code from it or is it just a file used from Visual Studio to load projects? 他将能够从中读取源代码,还是仅仅是Visual Studio用来加载项目的文件?

No, SLN files only store the project settings. 否,SLN文件仅存储项目设置。 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 . 众所周知,与他人共享代码的推荐方法是使用版本控制系统,例如GIT

No, a sln file only contains references to your files. 不可以,一个sln文件仅包含对您文件的引用。 So at least he now knows the name of your file ;) 所以至少他现在知道您文件的名称;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Build System:如何构建没有* .sln或Visual C ++ proj文件(* .vcproj)的项目(从其源代码) - Windows Build System: How to build a project (from its source code) which doesn't have *.sln or Visual C++ proj file (*.vcproj) 是否可以访问 SCIP 的 C++ 源代码? - Is it possible to access the C++ source code for SCIP? 是否可以从c ++文件的一行中的特定字符中读取? - is it possible to read from a specific character in a line from a file in c++? 从 .txt 文件加载 C++ 源代码 - Loading c++ source code from .txt file 从C ++源代码制作可执行文件和可安装文件 - Making an executable and installable file from c++ source code 是否可以使用C ++从二进制文件中一点一点读取? - Is it possible to read bit to bit from a binary file with c++? 是否可以在C ++中存储从文本文件读取的换行符? - Is it possible to store newline characters read from a text file in c++? 是否可以读取C ++库的代码并对其进行修改? - Is it possible to read code of a C++ library and modify it? 十六进制编辑器可能从exe文件中删除代码? (C ++) - removing code from an exe file with hex editor possible? (c++) 是否可以从C ++代码访问打包/捆绑的文件? - Is it possible to access packaged/bundled file from c++ code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM