Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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) #681

Open
Mephistoette opened this issue Jul 7, 2024 · 2 comments

Comments

@Mephistoette
Copy link

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.

@Mephistoette
Copy link
Author

I figure out it, the solution is that replace "postbuildcommands {
("{COPY} %{cfg.buildtarget.abspath} ../bin/" .. outputdir .. "/Sandbox")
}
" with "postbuildcommands {
("{COPY} %{cfg.buildtarget.relpath} "../bin/" .. outputdir .. "/Sandbox/"")
}"

@ViktorPopp
Copy link

Then please close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants