A lot of code should just work, some will require a rebuild under the new environment... I don't think I've had many problems moving forward at any given point. I've been using C#/.Net since some of the early previews. Though, these days most of my time is spent with node.js, and I've been following rust and go with some interest.
I mean any chance of viewing source files for .NET 4.0.
I don't think sourceof.net has previous versions, but it's quite easy to just open any assembly on ILSpy.
You won't get comments, but you can read the code very clearly.
I had to do this a few times in the early 1.x/2.x days as I needed to understand some of the internals for functionality I wanted/needed... as a cheat. Since 4, it's been really good, but I'm doing far more node these days. Sometimes I do miss it, but usually not so much.