I had the same problem with a c++ project in Visual Studio 2019.
The following solution worked for me:
- Close Visual Studio.
- Go to the project’s root folder and delete the .vs directory.
- Start Visual Studio and open the solution.
- The build should now work.
More Related Contents:
- Set content files to “copy local : always” in a nuget package
- Visual Studio 2012 – Intellisense sometimes disappearing / broken
- MSDeploy skip rules when using MSBuild PublishProfile with Visual Studio 2012
- class name and method name dropdown list is missing (visual studio setting)
- What is this ‘Waiting for Background operation’ in Visual Studio 2012?
- Waiting for second key of chord
- TF400324: Team Foundation services are not available from server in Visual Studio 2012
- How do I open a Visual Studio project in design view?
- Visual Studio – Error when clicking on Solution -> Properties (Object reference not set to an instance of an object)
- Will Web Deployment Projects still be available in Visual Studio 2012?
- debugging with visual studio using redirected standard input
- VS 2012 / 2013 AccessViolationException
- How can I invoke my MSBuild Target when msbuild.exe starts and when it ends
- Why does intellisense and code suggestion stop working when Visual Studio is open?
- Visual Studio 2010 always thinks project is out of date, but nothing has changed
- Visual Studio: How to break on handled exceptions?
- Configure IIS Express for external access to VS2010 project
- Visual Studio 2015 or 2017 shows IntelliSense errors but solution compiles
- What is the difference between Release and Debug modes in Visual Studio? [duplicate]
- Visual Studio Solutions Folder as real Folders
- Visual Studio: How do I show all classes inherited from a base class?
- How does CMake specify “Platform Toolset” for a Visual Studio 2015 project?
- Visual Studio move project to a different folder
- Toggle “Break when an exception is thrown.” using macro or keyboard shortcut
- how to change source file encoding in csharp project (visual studio / msbuild machine)?
- Visual Studio Hosting Process and “The operation could not be completed”
- Visual Studio keyboard shortcut to display IntelliSense
- How do I REALLY reset the Visual Studio window layout?
- Visual Studio Deployment Project – Create shortcut to deployed executable
- DataTable visualizer disappeared from my Visual Studio