.dll reference Visual Studio (net framework 4.0 to 4.5 issue)

Hi,

I would like to use KangarooSolver.dll in Visual Studio for grasshopper Add-On.

I referenced it correctly and the code has no errors.

But when I try to build the solution I get error:

Warning The primary reference “KangarooSolver” 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”. Catenary

I tried to download 4.0 version but I have to uninstall 4.5.
But is it going to solve this issue?

Just changed framework in Visual Studio. It works, no error anymore.