什么是.sln和.vcproj文件,它们包含什么? [英] What are .sln and .vcproj files, and what do they contain?
问题描述
我是Visual Studio领域的新手.有人可以解释一下这两个文件包含什么吗?我知道其中一个包含有关项目的信息,但是另一个包含什么信息?
I'm new in the world of Visual Studio. Can somebody please explain what these two files contain? I know that one of them contains info about project, but what about the other one?
推荐答案
项目文件.vcproj / .vcxproj
包含有关如何将代码编译为DLL或二进制文件或链接程序可以组合为一个单元的其他内容的设置.项目文件只是一个xml文件,其中包含编译器设置,链接器设置,并描述您要编译的文件.
A project file .vcproj / .vcxproj
contains settings on how to compile your code into a DLL or a binary file, or something else that the linker can assemble into one unit. A project file is just an xml file that contains compiler settings, linker settings, and describes which files you want to compile.
解决方案文件*.sln
是一个文本文件,将多个项目文件组合在一起.
A solution file *.sln
is a text file that groups together multiple project files.
因此,如果您把它想像成一棵树,那么您就对它有了很好的心理印象:
So if you think of it like a tree, then you have got a good mental picture of it like this:
.sln
.vcproj
.h
.h
.cpp
.cpp
.vcxproj
.h
.h
.cpp
.cpp
.csproj
.cs
这篇关于什么是.sln和.vcproj文件,它们包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!