Solved

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

Posted on 2013-10-28
7
430 Views
Last Modified: 2013-10-29
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.
0
Comment
Question by:akohan
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39607285
Do any dialog boxes appear during compilation?
0
 
LVL 24

Expert Comment

by:chaau
ID: 39607301
If your project is part of a solution then the output will be in the solution's Bin folder. Check it on your PC
0
 

Author Comment

by:akohan
ID: 39607407
@ 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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39607457
I'm not looking for ones you created, rather I am looking for a specific one:

Screenshot
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?
0
 
LVL 33

Expert Comment

by:sarabande
ID: 39608869
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
0
 
LVL 33

Accepted Solution

by:
sarabande earned 340 total points
ID: 39608900
note, when the messagebox appears the code obviously was in the build. it is not very likely that it is a different case when you commented the message box.

if you accept this to be true, you might think of another reason for the strange behavior. for example, the change was made in an if block but the condition never was true. or, you were fooled by a similar named variable. or, a baseclass and a derived class have a member variable with same name. or, there is an exception raised which was handled but not shown. or the function you call is not overloaded in the derived class. there are a lot of possible reasons, but the first thing is, that you look for your own faults rather than assuming that vc compiler or tfs have a bug (what is possible but not very likely).

Sara
0
 

Author Comment

by:akohan
ID: 39609298
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now