Hi,
Since you didn't tell us which version of Visual Studio you're using, I
assume you're using VS2005 and you are probably using following command
line to build a project in a solution:
devenv Solution1.sln /build debug /project
ConsoleApplication1\ConsoleApplication1.csproj
And you found out since the ConsoleApplication1 depends on another project
in the solution, the another project is also built before building
ConsoleApplication1.
If this is the case, you can use msbuild
(%windir%\Microsoft.NET\Framework\v2.0.50727\MSBui ld.exe) to build the
project alone, the project build dependency is stored in the solution file;
when you use msbuild to build the project file alone, dependent project
will not be built first.
However, please note if a project references another project, then in
either case, the referenced project will always be built first.
For more information about msbuild, please see this page:
#MSBuild Command Line Reference
http://msdn2.microsoft.com/en-us/library/ms164311.aspx
Hope this helps. Please reply here to let me know if there's anything else
I can help.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.