It was working before and today it’s not, I’m not sure what changed but it is now impossible for me to export anything. The exporter get stuck at Restoring packages
OK so the workaround from @Elias does work and it has to be done using the Developer Command Prompt from Visual Studio 2019 only (I didn’t pay attention at first that I was using the Command Prompt from VS 2022).