Malfunction Posted March 15, 2004 Posted March 15, 2004 I'm currently working with two projects. Namspace A is a winForms app and namespace B a library. When pushing CTRL+F5 (run without debugging) it would only compile namespace A. So I always push "save all" before hitting CTRL+F5. Maybe there's an option to automatically compile all changed files so I wont have to push the save button? Now here's the strange behaviour and I can reproduce it: -I added this to a control in namespace B: MessageBox.Show("hello"); -saved all files and pressed CTRL+F5 --> the message box wouldn't show - I changed the displayed text in the mb to: MessageBox.Show("hello world"); -saved all files and pressed CTRL+F5 -- the message box pops up displaying "hello" -now I don't change anything and don't save it either all I do is press CTRL+F5 again --> the messageBox pops up displaying "hello world" It is pretty anoying to run the application twice in order to have it compile to the latest version... Quote Debug me...
samsmithnz Posted March 15, 2004 Posted March 15, 2004 I'm not sure exactly what is wrong here, but I'm working on a project like yours at the moment where I have several projects that call each other in the same solution. When ever I make a change I do two things: 1. Ctrl+Shift+S (to save everything) 2. Crt+Shift+B (to build everything) then I press F5 or refresh my webpage (depending on the project I'm working on). THis works for me everytime, and is only two small quick hotkey presses. Quote Thanks Sam http://www.samsmith.co.nz
Malfunction Posted March 15, 2004 Author Posted March 15, 2004 thx it works that way....... Quote Debug me...
*Experts* Nerseus Posted March 15, 2004 *Experts* Posted March 15, 2004 Assuming you have your dependencies setup (project A depends on project B) then compiling/running A should detect a change in project B. If it doesn't, it might not copy over the new DLL (to the bin\debug folder) every time. I've had the best luck with a full rebuild when using multi-project solutions. Assuming project A's reference to project B says "copy local", everything should be fine (copy local is the default - it copies the compiled DLL to the bin\Debug folder). -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.