View Single Post
  #2  
Old 10-08-2004, 03:13 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
When building an individual project, you specify the project configuration to build; when building a solution file, you specify the solution configuration to build. The names of project and solution configurations aren't necessarily the same (although you could modify them to be the same if you wanted to).

Currently using the All configurations option or regular expressions for the configuration is not supported when building via a project file (instead of using the .sln file).

Since the solution typically has different configuration names than the individual projects, you can often encounter naming configuration naming differences between the two.

We have put adding support for the All configurations option and regular expression support for building individual projects on our list of issues for a future release.

There are several reasons why we feel it is not recommended to build a project file directly:
1) When compiling a project file directly with the VS.Net compiler, it will often randomly determine a related solution file to build instead anyway (uncommanded, behind the scenes) which may or not be an appropriate solution file in your situation (and you have no control over the choice)
2) Whenever you compile in the IDE, the IDE insists on creating a solution file anyway.
3) Project references are maintained in solution files and a typical build will build all the projects in the solution which relies on these references to determine build order and dependencies.
Reply With Quote