I have cloned a repo, a .NET solution with many projects, all of them load successfully, except for one, which I need to get the solution up and running.
This is the error I’m getting:
The imported project "C:Program Files (x86)MSBuildMicrosoftVisualStudiov17.0WebApplicationsMicrosoft.WebApplication.targets" was not found.
Also, tried to find "WebApplicationsMicrosoft.WebApplication.targets" in the fallback search path(s) for $(VSToolsPath) - "C:Program Files (x86)MSBuildMicrosoftVisualStudiov17.0" . These search paths are defined in "C:UsersIvanobishevAppDataLocalMicrosoftVisualStudio17.0_34e5c1a8devenv.exe.config".
I checked both paths where there is supposed to be a Microsoft.WebApplication.targets file, and in neither I could find such file.
I went to the file devenv.exe.config file and couldn’t find those two paths above mentioned.
I’m using Visual Studio 2022, I tried reinstalling it.
I modified the installation to include the ASP.NET and web development workload.
The Readme says I don’t need to change the declaration in the .csproj file.
What do you suggest? Creating folders manually and putting a Microsoft.WebApplication.targets file there?
Thanks in advance.