Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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...

Debug me...
Posted

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.

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...