We have a module for EpiServer which is written in C# 2.0 which we are continuing to develop. If the only thing we know about our customers is that our current module works fine, which version of C# may we upgrade to which will still work with the customers’ current runtime?
Share
All versions of the C# compiler after 2.0 can be used to target the 2.0 CLR / Runtime. This is called down targeting. The compiler will only let you use features supported on the previous version of the runtime and will provide errors if you attempt to use features that are not. For example using dynamic when targeting 2.0.