Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading from a ListBox Pin
Eddy Vluggen23-Aug-11 11:13
professionalEddy Vluggen23-Aug-11 11:13 
QuestionIE Trickery [modified] Pin
Herboren23-Aug-11 2:35
Herboren23-Aug-11 2:35 
AnswerRe: IE Trickery Pin
Not Active23-Aug-11 3:08
mentorNot Active23-Aug-11 3:08 
GeneralRe: IE Trickery Pin
Herboren23-Aug-11 3:33
Herboren23-Aug-11 3:33 
GeneralRe: IE Trickery Pin
Herboren23-Aug-11 4:08
Herboren23-Aug-11 4:08 
QuestionHow to convert PDF to Flash Book Pin
vj.negi0823-Aug-11 2:31
vj.negi0823-Aug-11 2:31 
AnswerRe: How to convert PDF to Flash Book Pin
BobJanova23-Aug-11 5:08
BobJanova23-Aug-11 5:08 
QuestionVisual Studio build macro [modified] Pin
lukeer22-Aug-11 23:09
lukeer22-Aug-11 23:09 
Hi experts,

this actually is not a C# specific question but related to Visual Studio. I posted it here because the mentioned application is written in C# and there seems to be no IDE related forum.
If there is, and I just didn't see it, please move this appropriately.


My solution contains an actual project, a setup project and a setup customization project.

Most of the time I have changed something, I simply hit F6 to compile or F5 to debug. Since the setup project takes a lot longer to compile than the rest, it is left out of this "normal" compilation (Its checkbox in configurations editor is not checked).

Whenever I have solved a bunch of problems and want to compile the whole thing, I have to manually open configurations manager, check the "Build" checkbox for setup, close configurations manager, change to release, build, change back to debug, build, open configurations manager again, uncheck "Build" for setup and close configurations manager.

I tried to record this as a macro. Here is the record
VB
    Sub TemporaryMacro()
DTE.ExecuteCommand ("Build.ConfigurationManager")
DTE.ExecuteCommand ("Build.SolutionConfigurations", "Release")
DTE.ExecuteCommand ("Build.RebuildSolution")
DTE.ExecuteCommand ("Build.SolutionConfigurations", "Debug")
DTE.ExecuteCommand ("Build.RebuildSolution")
DTE.ExecuteCommand ("Build.ConfigurationManager")
End Sub
Instead of doing what I described above, it opens the configurations manager, waits for user to close it, builds, changes to release and gives an error message that calling a COM component resulted in HRESULT E_FAIL.

Obviously, this approach doesn't work as expected. How would I have to change the macro to fit my needs?

(Actually, I don't want to open configurations manager. I just want to in/exclude the setup project in/from the build process. And this is the only way I know to do it.)


Edit: Since I chose an inappropriate forum, please don't exceed this thread. Answer here[^] instead.

Ciao,


luker
modified on Tuesday, August 23, 2011 10:05 AM

AnswerRe: Visual Studio build macro Pin
Richard MacCutchan23-Aug-11 0:48
mveRichard MacCutchan23-Aug-11 0:48 
GeneralRe: Visual Studio build macro Pin
lukeer23-Aug-11 3:25
lukeer23-Aug-11 3:25 
Questioncan anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
lokesh battini22-Aug-11 21:50
lokesh battini22-Aug-11 21:50 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Wayne Gaylard22-Aug-11 21:59
professionalWayne Gaylard22-Aug-11 21:59 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
OriginalGriff22-Aug-11 22:23
mveOriginalGriff22-Aug-11 22:23 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
nidobeb22-Aug-11 23:50
nidobeb22-Aug-11 23:50 
GeneralRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Ravi Bhavnani23-Aug-11 3:22
professionalRavi Bhavnani23-Aug-11 3:22 
GeneralRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
DaveyM6923-Aug-11 6:53
professionalDaveyM6923-Aug-11 6:53 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
BobJanova22-Aug-11 23:58
BobJanova22-Aug-11 23:58 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Subin Mavunkal23-Aug-11 1:54
Subin Mavunkal23-Aug-11 1:54 
GeneralRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Rob Philpott23-Aug-11 2:01
Rob Philpott23-Aug-11 2:01 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
Hari Om Prakash Sharma23-Aug-11 4:30
Hari Om Prakash Sharma23-Aug-11 4:30 
AnswerRe: can anyone help me out here with the tutorials of c# classes and arrays and strings as well as exception handling Pin
#realJSOP23-Aug-11 5:23
professional#realJSOP23-Aug-11 5:23 
Questionhelp me Pin
daniel_leto2322-Aug-11 18:09
daniel_leto2322-Aug-11 18:09 
AnswerRe: help me Pin
thatraja22-Aug-11 18:22
professionalthatraja22-Aug-11 18:22 
AnswerRe: help me Pin
daniel_leto2322-Aug-11 18:33
daniel_leto2322-Aug-11 18:33 
GeneralRe: help me Pin
Not Active22-Aug-11 19:01
mentorNot Active22-Aug-11 19:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.