Postcompilation error in audio plugin

I am developing an audio plugin that connects with a physical device via websocket. For this, I am using the Simple WebSocket Server external library. Now the thing is, when I started using it, the following compilation error appeared when trying to debug the VST3 project (it’s in spanish):

Gravedad Código Descripción Proyecto Archivo Línea Estado suprimido Detalles
Error MSB3073 El comando "copy /Y “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3\gravity-mm-plugin.dll” “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3\gravity-mm-plugin.vst3\Contents\x86_64-win\gravity-mm-plugin.vst3”
del /s /q “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3\Contents\moduleinfo.json”
if not exist “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3\Contents\Resources" del /s /q “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3\Contents\Resources” && mkdir “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3\Contents\Resources”
“C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3 Manifest Helper\juce_vst3_helper.exe” -create -version “1.0.0” -path “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3” -output “C:\JUCE\projects\gravity-mm-plugin\Builds\VisualStudio2022\x64\Debug\VST3/gravity-mm-plugin.vst3\Contents\Resources\moduleinfo.json”
:VCEnd” salió con el código 1. gravity-mm-plugin_VST3 C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 166

To keep moving and not get stuck, I am compiling and debugging the standalone plugin, but when the time comes I will need to make the vst3 work, so if someone has an idea of how can I solve this, I will be very grateful to read you :grin:

This looks like a copy issue.

Try either removing the existing VST3 if it exists, updating the permissions of your VST3 folder, or running your IDE / compiler as administrator.

I tried those three, even cleaning and rebuilding the solution, and the error persists :slightly_frowning_face:

I can correctly execute those commands in terminal, but I cannot load the .vst3 correctly in a DAW.