serhio
serhio

Reputation: 28586

VisualStudio projects: modifications are not taken into consideration

I have (between others) 2 projects in my solution: one WinForm project, that defines a Form (say, MyFormProject), and other a UserControl (MyControlProject).

When I modify MyControlProject's code and launch the debug, I see that any modification is not taken into consideration. I need to clear the solution, rebuild, for make it work...

Additional info: - I use in the UserControl the Dbi-Tech Components. Also, in the WinForm I use Infragistics components. Are both license files compatible, cause seems that both should user licenses.licx file? - When I wrote a new method in the Control, I got a MissingMethod exception in runtime, however, the code compiled without any error... Then I removed the references, re-added them, and the exception in runtime didn't appear.

Should I now every time remove+add or clear+rebuild the solution for test my modifications?

Upvotes: 0

Views: 126

Answers (3)

Daniel Rose
Daniel Rose

Reputation: 17648

Perhaps you don't have it set so that dependent projects are rebuilt: In the options, Projects and Solution -> Build and Run, see that "Only build startup projects..." is unchecked, and "On Run, when projects are out of date" is set to "Prompt" or "Always build".

Upvotes: 0

Mark Smith
Mark Smith

Reputation: 1115

Make sure that your projects have the dependencies set correctly in the project properties. Also with regards to removing and adding references, make sure that your references are not set to require a specific version. This can be checked by looking at the properties window while the reference is selected. If you require the specific version, your reference link breaks each time you rebuild the library and have to re add the reference.

Upvotes: 1

Sukanya
Sukanya

Reputation: 1061

Every time you change any code in user control, you've to compile and add as reference.

Upvotes: 0

Related Questions