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