I am learning dapper ORM. While installing it through nuget package manager I am getting following error:
Could not install package 'Dapper 2.0.30'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
In target framework option in project properties I've changed .net framework from 2.0 to 4.5.1
No 2.* (or above) version of Dapper supports .NET 4.5.*, and there are no plans to do so. You will have to update your target framework, or stick with older versions of the tool. Preferably the first.
Ultimately you should expect this to be more and more of a problem if you choose to use old frameworks.