Solved

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

Posted on 2013-10-28
7
428 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 74

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 74

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 32

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 32

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

20 Experts available now in Live!

Get 1:1 Help Now