Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

C# compiler in Visual Studio compiles but not change in output

Hello,

I have checked in a code from TFS and compiled it however, I don't see the change I am expecting in output.

I did compare my local file (where I can see changes are applied) line by line with the one on TFS  and even removed Bin/Debug/*.* files.

How can I fix this?

Thanks.
Avatar of kaufmed
kaufmed
Flag of United States of America image

Do any dialog boxes appear during compilation?
If your project is part of a solution then the output will be in the solution's Bin folder. Check it on your PC
Avatar of akohan
akohan

ASKER

@ kaufmed,

That is what did ... so I added a MessageBox.Show("some messages") in the block and it worked fine but when I take it off, same thing happens. Currently I am tracing. Any comments?


Thanks.
I'm not looking for ones you created, rather I am looking for a specific one:

User generated image
If you got this dialog, and you clicked "Yes", then Visual Studio ran the last build that compiled successfully.

That said, the fact that adding in a MessageBox of your own seems to work, but without it it does not suggests that the dialog I referenced above is probably not at play here.

Can you retrace your steps here for us so that we can see what the process you performed was, start to finish?
so I added a MessageBox.Show("some messages") in the block and it worked
you should put a breakpoint at the same place where the message box was.

but when I take it off, same thing happens.

can you post the change you made and tell what expected and what happened?

Sara
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akohan

ASKER

Yes of course. The part of code which was being ignored was supposed to show several cells on a canvas and found when I insert a message box it works because canvas is losing the focus so I had to move the code to a place such it gets executed before canvas loses its focus.

Thank you