Extension methods don’t compile? No panic!
I came across to a really strange problem today. Some extension methods that I have copied from another project just did not want to be compiled at all. ‘string’ does not contain a definition for ‘MethodName’. I have checked everything, including clearing the temporary ASP.NET files within framework folder (C:\Windows\Microsoft.NET\Framework\…), restarting Visual Studio and even restarting the OS. The target...