I had a problem since yesterday while trying to publish an app.
What I tried after asking Perplexity AI is :
1- Launch visual studio in safemode with cmd :
cd C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE
devenv.exe /safemode
Try to open the project I wanted to publish
The project loaded but there was "unloaded" (déchargé in french) next to all the projects
There is a dialogbox showing an error that showed many times (I closed it each time)
2 - Repeat 1 (all steps) after launching cmd in administrator mode
Open Visual Studio normally.
Publish then works.