473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Useful tip

Sometimes all I want to do is build a particular solution without firing up
vstudio in GUI mode and then wait whilst source control get its act together
etc. Anyway I've found a nifty solution to this by adding some extra file
associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on my
machine; yours maybe different so you may have to tweak the path accordingly
(in step 5).
2. This will only work with solutions that contain release / debug builds.
Having said that you can change or add more associations where appropriate.
How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton.
4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select either
Build Debug or Build Release.
Lee
Nov 15 '05 #1
6 1216
Or use NAnt: http://nant.sourceforge.net/
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
Sometimes all I want to do is build a particular solution without firing up vstudio in GUI mode and then wait whilst source control get its act together etc. Anyway I've found a nifty solution to this by adding some extra file
associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on my
machine; yours maybe different so you may have to tweak the path accordingly (in step 5).
2. This will only work with solutions that contain release / debug builds.
Having said that you can change or add more associations where appropriate.

How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton.
4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to perform action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select either Build Debug or Build Release.
Lee

Nov 15 '05 #2
I have 'Feed into SQL Server' on .sql files , it's dead useful :-) still
looking for a solution though as to how I can keep my GUI that has a combo
box to pick the server, but still be able to feed a multiple-selection of
them into it, i.e only one instance of the program will fire up, but it will
be able to process all the files...

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
Sometimes all I want to do is build a particular solution without firing up vstudio in GUI mode and then wait whilst source control get its act together etc. Anyway I've found a nifty solution to this by adding some extra file
associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on my
machine; yours maybe different so you may have to tweak the path accordingly (in step 5).
2. This will only work with solutions that contain release / debug builds.
Having said that you can change or add more associations where appropriate.

How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton.
4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to perform action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select either Build Debug or Build Release.
Lee

Nov 15 '05 #3
Why couldn't you just invoke cl.exe ?

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
Sometimes all I want to do is build a particular solution without firing up vstudio in GUI mode and then wait whilst source control get its act together etc. Anyway I've found a nifty solution to this by adding some extra file
associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on my
machine; yours maybe different so you may have to tweak the path accordingly (in step 5).
2. This will only work with solutions that contain release / debug builds.
Having said that you can change or add more associations where appropriate.

How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton.
4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to perform action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select either Build Debug or Build Release.
Lee

Nov 15 '05 #4
Because cl.exe hasn't a clue what .sln files are nor for that matter vcproj
files.

Regards
Lee

"Bonj" <a@b.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Why couldn't you just invoke cl.exe ?

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
Sometimes all I want to do is build a particular solution without firing

up
vstudio in GUI mode and then wait whilst source control get its act

together
etc. Anyway I've found a nifty solution to this by adding some extra file associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on my
machine; yours maybe different so you may have to tweak the path

accordingly
(in step 5).
2. This will only work with solutions that contain release / debug builds. Having said that you can change or add more associations where

appropriate.


How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton.
4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to

perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select

either
Build Debug or Build Release.
Lee


Nov 15 '05 #5
But you wouldn't pass them to it would you, you'd pass it the names of the
..cpp files. Doh!

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:eP*************@TK2MSFTNGP09.phx.gbl...
Because cl.exe hasn't a clue what .sln files are nor for that matter vcproj files.

Regards
Lee

"Bonj" <a@b.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Why couldn't you just invoke cl.exe ?

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
Sometimes all I want to do is build a particular solution without firing
up
vstudio in GUI mode and then wait whilst source control get its act

together
etc. Anyway I've found a nifty solution to this by adding some extra file associations. So here is how you do it:

First some assumptions:
~~~~~~~~~~~~~~~~
1. The paths to devenv are based on the default install directory on
my machine; yours maybe different so you may have to tweak the path

accordingly
(in step 5).
2. This will only work with solutions that contain release / debug

builds. Having said that you can change or add more associations where

appropriate.


How to do it
~~~~~~~~~
1. Fire up the file explorer and select menu Tools->Folder Options.
2. Select the File Types tab.
3. Select from the list file type SLN and then press the Advanced Buton. 4. Click on New button and fill in Action name to be "Build Debug"
5. copy and paste the following text into the "Application ued to perform action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build debug"
6. Click on ok.

7. Repeat steps 4 -> 6 but replace the word Debug for Release in both
"Action" edit and use the following text for the "Application ued to

perform
action" edit:
cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv" "%1" /build release"

How to use it
~~~~~~~~~
Simply right click on the .SLN file of choce and from the menu select

either
Build Debug or Build Release.
Lee



Nov 15 '05 #6
> But you wouldn't pass them to it would you, you'd pass it the names of the
.cpp files. Doh! And how would you pass it the cpp files with all the associated settings
then? Parse the .sln files followed by th vcproj files? Seem like *lots* of
work when you can do what I just discussed. Perhaps you have the wrong end
of the stick regarding my tip?

Regards
Lee

"Bonj" <a@b.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl... But you wouldn't pass them to it would you, you'd pass it the names of the
.cpp files. Doh!

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:eP*************@TK2MSFTNGP09.phx.gbl...
Because cl.exe hasn't a clue what .sln files are nor for that matter

vcproj
files.

Regards
Lee

"Bonj" <a@b.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Why couldn't you just invoke cl.exe ?

"Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
news:uS*************@TK2MSFTNGP11.phx.gbl...
> Sometimes all I want to do is build a particular solution without firing up
> vstudio in GUI mode and then wait whilst source control get its act
together
> etc. Anyway I've found a nifty solution to this by adding some extra

file
> associations. So here is how you do it:
>
> First some assumptions:
> ~~~~~~~~~~~~~~~~
> 1. The paths to devenv are based on the default install directory on my > machine; yours maybe different so you may have to tweak the path
accordingly
> (in step 5).
> 2. This will only work with solutions that contain release / debug

builds.
> Having said that you can change or add more associations where
appropriate.
>
>
> How to do it
> ~~~~~~~~~
> 1. Fire up the file explorer and select menu Tools->Folder Options.
> 2. Select the File Types tab.
> 3. Select from the list file type SLN and then press the Advanced Buton. > 4. Click on New button and fill in Action name to be "Build Debug"
> 5. copy and paste the following text into the "Application ued to

perform
> action" edit:
> cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
> 2003\Common7\IDE\devenv" "%1" /build debug"
> 6. Click on ok.
>
> 7. Repeat steps 4 -> 6 but replace the word Debug for Release in both > "Action" edit and use the following text for the "Application ued to
perform
> action" edit:
> cmd.exe /k ""c:\program files\Microsoft Visual Studio .NET
> 2003\Common7\IDE\devenv" "%1" /build release"
>
> How to use it
> ~~~~~~~~~
> Simply right click on the .SLN file of choce and from the menu select either
> Build Debug or Build Release.
>
>
> Lee
>
>



Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Franz Steinhaeusler | last post by:
Hi, I looked at tabnanny to check a python source file. But I didn't find anything, tabnanny is able to find, what couldn't be found by compile command. Or have I missed something? best...
5
by: Nobody | last post by:
I am trying to write a BTree class, just wondering if I missed any useful methods. This is my class definition so far (excuse the MFC portions, its a project requirement): template <class TYPE,...
5
by: djake | last post by:
Someone can explain me what are makefiles useful for? Couldn't i write shell script instead of makefiles? (*.sh in unix; *.cmd in win32) Moreover i really doesn't understand what dependencies are...
30
by: Vla | last post by:
why did the designers of c++ think it would be more useful than it turned out to be?
5
by: Clint Olsen | last post by:
I did a Google about this, and I've seen this covered quite a few times - some leading to useful tricks with offsetof() to discern alignment and others using a big-union of intrinsic types to...
7
by: eyh5 | last post by:
Hi, I'm writing some C codes to run simulations. I'm wondering if there is a website that may contain useful information on how to make one's code run more efficiently and in a...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
0
MMcCarthy
by: MMcCarthy | last post by:
This is a list of technical site links that many of our experts find useful. They are often included in posts in answer to repeated questions so I am posting a list of them here for convenience. ...
0
by: Very cool design! Useful information. Go on!,Very | last post by:
Very cool design! Useful information. Go on!,Very cool design! Useful information. Go on!,Very cool design! Useful information. Go on!
69
by: raylopez99 | last post by:
They usually don't teach you in most textbooks I've seen that delegates can be used to call class methods from classes that are 'unaware' of the delegate, so long as the class has the same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.