I have an old .NET 40 VS 2010 project that uses the Ajax Control Toolkit. I have .NET 4.5 installed on my pc. I want to leave this old project targeting .NET 40, but it won't compile because I have .NET 4.5 installed on my pc. Do I have to uninstall .NET 4.5, or is there a work around to avoid this error?
Error
The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?)
Also there is a warning:
Warning
The primary reference "AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
Error
The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?)
Also there is a warning:
Warning
The primary reference "AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".