Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio solution file - what does the "Build.0" mean?

I'm looking at my Visual Studio .sln file as I'm customising build configurations (the reason why is a long story involving projects that won't load in VS2012).

Does anyone know what the Build.0 part of the build config section means? Does it mean that this project is ticked to be built under this build configuration?

Also, what does the ActiveCfg relate to?

{CFHHHA78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CFHHHA78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.Build.0 = Debug|Any CPU {CFHHHA78-C688-40B3-B53A-20C963A6F138}.Debug|Mixed Platforms.ActiveCfg = Debug|AnyCPU {CFHHHA78-C688-40B3-B53A-20C963A6F138}.Debug|x86.ActiveCfg = Debug|Any CPU 

Any links to .sln file walkthroughs would also be welcome. As always, the MSDN .sln file explanation is a little cryptic and doesn't seem to fully explain this part of the sln file.

like image 355
WheretheresaWill Avatar asked Jun 28 '13 11:06

WheretheresaWill


People also ask

What .sln file contains?

The . sln file contains text-based information the environment uses to find and load the name-value parameters for the persisted data and the project VSPackages it references. When a user opens a solution, the environment cycles through the preSolution , Project , and postSolution information in the .

What is solution file in Visual Studio?

Visual Studio uses MSBuild to build each project in a solution, and each project contains an MSBuild project file. The file extension reflects the type of project, for example, a C# project (. csproj), a Visual Basic project (. vbproj), or a database project (. dbproj).


1 Answers

Yes, your hunch was right. It does mean that the project has its Build option ticked to build under the build configuration. I just tested this by opening the solution in one instance of Visual Studio and the .sln file in the text editor (open with) of another Visual Studio instance. If you change the configuration options in the first and save all, you will see the appropriate changes in the second.

like image 130
Cameron Taggart Avatar answered Sep 18 '22 11:09

Cameron Taggart