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.
Related Contents:
- Set content files to “copy local : always” in a nuget package
- Visual Studio 2012 – Intellisense sometimes disappearing / broken
- What is this ‘Waiting for Background operation’ in Visual Studio 2012?
- What are the various “Build action” settings in Visual Studio project properties and what do they do?
- MSBuild doesn’t copy references (DLL files) if using project dependencies in solution
- Error message “No exports were found that match the constraint contract name”
- Visual Studio 2010 always thinks project is out of date, but nothing has changed
- Multiple Errors Installing Visual Studio 2015 Community Edition
- Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?
- How do I set the path to a DLL file in Visual Studio?
- Equivalent to AssemblyInfo in dotnet core/csproj
- Turn off auto formatting in Visual Studio
- From MinGW static library (.a) to Visual Studio static library (.lib)
- Create nuget package from dlls
- What is the difference between Release and Debug modes in Visual Studio? [duplicate]
- How to run Visual Studio post-build events for debug build only
- Warning as error – How to get rid of these
- Visual Studio 2013 and ASP.NET Web Configuration Tool
- How to configure Visual Studio to use Beyond Compare
- How do I turn off Unicode in a VC++ project?
- How to make Visual Studio copy a DLL file to the output directory?
- Can I hex edit a file in Visual Studio?
- Where is Developer Command Prompt for VS2013?
- Packages not loading after installing Visual Studio 2015 RTM
- how to change source file encoding in csharp project (visual studio / msbuild machine)?
- Referencing system.management.automation.dll in Visual Studio
- Intellisense doesn’t work for JavaScript in Visual Studio 2012
- Using Visual Studio’s ‘cl’ from a normal command line
- Could not find required file ‘setup.bin’
- Why does the Visual Studio editor show dots in blank spaces?
- Visual Studio – Where to define custom path macros?
- Visual Studio: Re-enable “Build failed, run last success?” dialogue box
- GCC with Visual Studio?
- Using CUDA with Visual Studio 2017
- Visual Studio keyboard-shortcut for automatically adding the ‘using’ statement
- Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?
- Visual Studio: Is there a “move class to different namespace” refactoring?
- Tools for inspecting .lib files?
- VisualStudio: How to save the obj folder somewhere else
- Xamarin – How to update Mono.Android version to resolve dependencies?
- Error Installing Visual Studio 2015 Enterprise Update 1 with Team Explorer
- Where can I get a VB6 IDE [duplicate]
- Recommended add-ons/plugins for Microsoft Visual Studio [closed]
- Visual Studio refuses to forget breakpoints?
- Disable Browser Link – which toolbar
- visual studio not remembering open documents & startup project
- Remove TFS Connection From Solution
- Debugging TypeScript code with Visual Studio
- Copying Visual Studio project file(s) to output directory during build
- How to Set Path Environment Variable using CMake and Visual Studio to Run Test