Search code examples
c#asp.net-mvcidecsprojvisual-studio-2019

The tools version "15.0" is unrecognized - Incompatible/Unloaded project in Visual Studio 2019 (v16.0.0 Preview 5.0)


UPDATES

  • Repaired .NET Core 2.1 installed version 2.2 as well
  • uninstalled VS 2019 and re installed
  • it does work on another machine with VS 2017 & VS 2019 installed (same versions)

UPDATES

I am facing this for quite a while and I really want to make use of the 2019 Version of VS.

When opening a VS C# MVC project that is on Azure DevOps and works on all previous versions (2015-2017) is not working in 2019.

The first error I get is:

.csproj : error : The tools version "15.0" is unrecognized. Available tools versions are "14.0", "2.0", "3.5", "4.0".

So I change the 15.0 to the suggested ones one by one and tried reloading the project, none solved the error, in fact I am getting another which is the following:

.csproj : error : The application for the project is not installed

No idea what I can/should do here.

Anyone can suggest me anything, has some info about it and so on?


Solution

  • OK FIXED THIS ...

    My visual studio 2017 MSBuild location:

    C:\Program Files (x86)\Microsoft Visual Studio\Enterprise\MSBuild\15.0\Bin
    

    My visual studio 2019 MSBuild location:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\15.0\Bin
    

    I noticed that my Visual studio 2019 Bin folder was incomplete so i went on and took a back up (of course) and copied the complete Bin folder from 2017 to 2019.

    This fixed everything ... No idea what to say more here, just hopes it can help anyone!