



Windows 10 Pro build 21H1
Visual Studio Community version Version 16.11.5
Getting this issue when trying to build my vst ASPIK project:
Â
1>Info: ===Check Unit Str
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/vst3_doc/artwork/VST_Logo_Steinberg.ico C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/cmake/modules/../templates/desktop.ini.in C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: cd C:\Users\je050\Documents\ASPIK\ALL_SDK\myprojects\JEcho\win_build\bin
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: C:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: echo [SMTG] Validator started...
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: C:\Users\je050\Documents\ASPIK\ALL_SDK\myprojects\JEcho\win_build\bin\Debug\validator.exe C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/Contents/x86_64-win/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: echo [SMTG] Validator finished.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: setlocal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/vst3_doc/artwork/VST_Logo_Steinberg.ico C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -E copy C:/Users/je050/Documents/ASPIK/ALL_SDK/VST_SDK/VST3_SDK/cmake/modules/../templates/desktop.ini.in C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/desktop.ini
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3/PlugIn.ico
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: attrib +s C:/Users/je050/Documents/ASPIK/ALL_SDK/myprojects/JEcho/win_build/VST3/Debug/JEcho_VST.vst3
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :VCEnd" exited with code -1073741819.
1>Done building project "JEcho_VST.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
Â
I have built other plugins with no issue. The main difference here is the use of the Circular Buffer object so I think this may be part of the problem. In other projects I have used the AudioFilter object with no issues. I have reproduced this issue on both my desktop and laptop. I have read this forum post and tried all other runtime settings available.
Â
When using other runtime settings, I get lots of linker issues.
Â
Thanks for any help.


Update:
I removed the circular buffers from my project and built successfully.
I also tried using the Audio Delay object instead to see if that builds. The build failed with the same error code MS3073.
Â
Seems to be something going on the with the circular buffer object in windows. Any one else noticed this?Â
Â
Cheers
Hi Jordan,
The setlocal error is the root problem of that error log. It is thrown either when the Validator fails to run through or when the .vst3 file cannot be written due to lack of admin rights.
In this case I think that there is an error in your code that is not being caught/recognized by the IDE. When the Validator goes to actually run the code prior to finalizing the build, it fails to execute and the Validator exits with the setlocal error above and no other helpful info. Makes a real pain to troubleshoot. You'll have to keep commenting things out to narrow down the culprit.Â
Since you're dealing with the delay object I highly suspect that you are attempting to access an array out of bounds somewhere within the object or in your implementation. If you write something like;
float x[2] = {0};Â
float y = x[2];Â Â /// result = setlocal msg
Visual Studio won't see the error and complain & it will compile the code but then it doesn't pass the Validator stage to actually be built. There is a way to turn off the Validator so you can build the plug and see the plug crash happen in real life. But use that option only as a last result debug method as anything that is crashing the Validator will most certainly crash most DAWs as well.
Posts by Will on the topic and here
(b ᵔ▽ᵔ)b

You can of course build the plugin with the Validator disabled, then load the plugin into your DAW. Start Visual Studio and attach it to your DAW (Debug/Attach to Process...), then when your plugin crashes, Visual Studio will break at the point where the Exception is thrown. Can be really helpful at times.
You'll need a Debug build to do this, of course, but this is the default.


Thank you all for your replies. It turns out my issue was calling the circularbuffer.flushbuffer method before the createcircularbuffer method. In the case of the Audio Delay object I had forgot to implement the reset function at the time of testing. This now builds too. We live and we learn eh....
Most Users Ever Online: 152
Currently Online:
2 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 2
Members: 782
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 849
Posts: 3370
Moderators: W Pirkle: 693