Current Dapper version is the most affected one and only works for .NET Framework 4.7.2. It will have long support time and it's the most tested and reliable one.

So to use it in your exising project you first have to upgrage your existing project to .NET Framework 4.7.2.

For this go to the Debug menu and click "Project Name" Debug Properties. Then click on Build and from Target Framework choose ".NET Framework 4.7.2". If you do not have it, download it from Microsoft site and follow these steps.

After changing the framwork version now you have to upgrade already installed packages for your project. For this you just have to run the following command on Package Manager Console.
Open console from Tools -> NuGet Package Manager -> Package Manager Console.

On console run the following command:

update-package -reinstall -ignoreDependencies

The command will un-install all old packages and install them again for .NET Framework 4.7.2, so do not worry if you see Un-Install message on your Console.

Now from the package manager Install Dapper. After installation run the following command again on Package Manager Console.

On console run the following command:

Dapper is now installed. Enjoy Coding......

NOTE: If you receive any error messages like Could not load file or assembly etc, just check the version in packages.config file and use the same one in Web.config file.

Post a Comment

Previous Post Next Post