Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do "unchanged" .cs files get recompiled on each build? 1

Status
Not open for further replies.

dragonwell

Programmer
Oct 21, 2002
863
US
I had a weird thing happen to a web app. The original dll was built using .NET 1.0. The web server is is .NET 1.1. I have since upgraded the dev computer to 1.1 and recompiled the dll many times, after making changes to some of the .cs files.

I *assumed* that each time I built the app EVERY .cs file gets re-parsed and compiled into the dll. But I'm thinking maybe not - only the CHANGED files get recompiled (using the currently installed version of .NET) and the IL from the un-edited files (whose code was compiled use the old version of .NET) remains 1.0. Is that how it works?

Only after editing a file and re-building did a section of code that used to work stop working, due to a breaking change from 1.0 to 1.1.

It's the only explanation I can come up with.
 
No they don't recompile on every build, unless you actually Rebuild them. I had a similar problem.

Regards,


Lewis Harvey
lewis@lharvey.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top