#681·Hazel

error MSB3073: The command "IF EXIST ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll\ (xcopy /Q /E /Y /I ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll ..\bin\Debug-windows-x86_64\Sandbox > nul) ELSE (xcopy /Q /Y /I ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll ..\bin\Debug-windows-x86_64\Sandbox > nul)

Author: MephistoetteCreated Jul 7, 2024Updated Jun 20, 2025

when I set premake already, and then delete the hazel.sln,*vcxproj in Hazel and Sandbox Dirs, go back to run premake5.exe vs2022, everything seems ok, and I go back to open the Hazel.sln built by the premake in vs2022, then build Sanbox and Hazel, either of them show the same error " C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: The command "IF EXIST ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll\ (xcopy /Q /E /Y /I ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll ..\bin\Debug-windows-x86_64\Sandbox > nul) ELSE (xcopy /Q /Y /I ..\bin\Debug-windows-x86_64\Hazel\Hazel.dll ..\bin\Debug-windows-x86_64\Sandbox > nul)" another thing is that when I checking the Hazel and Sandbox properties, I found that the target directories and intermediate directories were blank, the path I set in premake didn't got read correctly.