Target dotnet2.0 instead of dotnet3.0?

Feb 14, 2008 at 11:57 PM
I see that the code uses a pair of extension methods for date conversion. Is the extensionmethods class the only thing that would need to be changed in order for this to fit within dotnet2.0?
Apr 6, 2008 at 12:20 AM
yes it is - you can make it 2.0 CLR compatible if you just add this new attribute definition to the source:

namespace System.Runtime.CompilerServices
{
    public sealed class ExtensionAttribute : Attribute
    {
    }
}

that's all the 3.5 compiler needs in order for you to target this at 2.0; this presumes you are going to use vs2008 to compile it.