I have a project that has been compiling and building without errors in Visual Studio 2022 17.1. I recently upgraded to 17.2 and now the project fails without emitting any errors after compiling only 2 or 3 files. (The failure is not consistent as to which file fails.) I have changed the Tools->Options->Projects and Solutions->Build Options to display Diagnostic level messages. Still I get no error message.
Does anyone know how to discover what the error actually is?
Is there any way to fall back to 17.1?
UPDATE:
Yesterday I was able to get the project to build through some combination of the following (all of which I did):
- Reinstall Visual Studio 2022
- Delete
.vsfolders - Delete
ReleaseandDebugfolders.
However today the problem has returned. I now realize that yesterday I was deleting .vs (which is on a network drive) from a different computer. Today I tried deleting .vs within Windows itself, and it refuses to allow it, saying it is in use by "ServiceHub.IndexingService.exe". This is when Visual Studio 2022 is not running. That service is not killable. I have tried deleting .vs. from the other computer as I did yesterday, but today it makes no difference.
There is a serious problem with 17.2. Is there any way to fall back 17.1? (I ask again.)
I have a "detailed" build log of the fail-without-error, but inserting it here far exceeds the character limit that Stack Overflow imposes on question text. I don't see anywhere to attach it, but I'll be happy to.
Meanwhile, here is a "normal" build log:
Build started...
1>------ Build started: Project: RGPLuaWin, Configuration: Release x64 ------
1>Build started 6/4/2022 11:03:29 AM.
1>Target ResolveProjectReferences:
1> Target GetNativeManifest:
1>Target InitializeBuildStatus:
1> Touching "Y:\RGPLua\RGPLuaWin\x64\Release\obj\RGPLuaWin.tlog\unsuccessfulbuild".
1>Target GetReferencedVCProjectsInfo:
1>Target ClCompile:
1> All outputs are up-to-date.
1> RGPLua.cpp
1> RGPLuaConnector.cpp
1> RGPLuaConnectorBase.cpp
1> RGPLuaConnectorCell.cpp
1> RGPLuaConnectorCharPrefs.cpp
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========