$(MSBuildToolsPath) refers to old MSBuild location after upgrade from 2016.1 to 2016.3

Since a long time we've been using a Database Project in our solution (opened with Visual Studio 2015) which imports a .targets file.

This targets file specified an AssemblyFile attribute:


<UsingTask TaskName="GetDatabaseVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">


Since upgrading from Resharper 2016.1 to 2016.3 this suddenly results in Build Errors, messages that ITask interface cannot be found in the specified dll.

It turns out that the dll is opened from the path C:\Windows\Microsoft.NET\Framework\v4.0.30319

In a team of three we all saw the same error occurring after installing the new Resharper.


Kind regards,




Please sign in to leave a comment.