Run without building out of date porject  
Author Message
hipswich





PostPosted: Visual C# IDE, Run without building out of date porject Top

I have specifically chosen the option of "Prompt to build On Run, when projects are out of date". This used to work. Sometime ago, suddenlly IDE started to always run without prompting to build the out of date project. Does anyone have any clue

Thanks.




Visual C#14  
 
 
Peter Ritchie





PostPosted: Visual C# IDE, Run without building out of date porject Top

I just checked one of my projects and it's doing the same thing. I checked the "On Run, when projects are out of dated" option in Tools/Options, "Projects and Solutions"/"Build and Run" tree item, and I have it set to "Prompt to Build". I tried switching to "Always Build" and back to "Prompt to Build" (with a build in between) but, nothing changed)... I see nothing similar at http://connect.Microsoft.com/visualstudio/feedback/, if you post a bug there post a link to it here so others can vote.

Are you using SP1 Beta

 
 
hipswich





PostPosted: Visual C# IDE, Run without building out of date porject Top

Thank you for verifying this.

No, I don't think I am uisng SP1.  The version is VS2005 8.0.5.727.42.

The interesting thing is that it used to work on this machine and it still works on another machine.  I will find out the version number on the other machine.



 
 
Peter Ritchie





PostPosted: Visual C# IDE, Run without building out of date porject Top

I just noticed that with C# and C++ projects, only C++ projects prompt when this option is not disabled.

 
 
Peter Ritchie





PostPosted: Visual C# IDE, Run without building out of date porject Top

I've created an issue regarding this on Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=242954. Readers, if you feel this issue is important to you, make sure you voice is heard and vote for this issue. If you suffer from or notice this problem too, please validate the issue.

 
 
hipswich





PostPosted: Visual C# IDE, Run without building out of date porject Top

Peter, thank you for taking care of this. I will voice my opinion.

I checked the other instance of VS on another computer which "Build out of date projects on run" works. It's version number is: 8.0.50727.42. This is developer version of VS from MSDN DVD. The other one with the problem is a standard version. I doubt this edition difference explains the problem because as I said the standard version used to work.

I noticed that though I chose "Prompt to build", it does not prompt, instead it just builds. It works for C# project. It seems VS's behaviour regarding this is quite irregular and inconsistent.



 
 
Peter Ritchie





PostPosted: Visual C# IDE, Run without building out of date porject Top

Response from MSFT: "Thanks for reporting this issue. This option only works for VC. We're looking into making it clearer in the drop down text. Thanks, Prasadi de Silva Vs Program Manager"

 
 
hipswich





PostPosted: Visual C# IDE, Run without building out of date porject Top

Thanks again, Peter, for following this.

I thought I should make a correction of my previous posts. When I said it was working, actually I meant that VS would build the project out of date. Now, VS just starts running the application successfully built last time without building it when it has been modified, so I have to build the proejct then run it. Another instance of VS still builds a changed project before running it automatically.



 
 
RomanSt





PostPosted: Visual C# IDE, Run without building out of date porject Top

This cannot possibly be a mis-wording.

A pure C# project is rebuilt just fine when I hit F5 having modified something. But one which uses dependencies written in C++ will never be rebuilt when I hit F5 - the previously built version is run instead. Can you please clarify in which sense this is not a bug