Error Generating Visual Studio Files With CMD Or PowerShell

When attempting to generate my VS files via CMD or PowerShell I receive the error "Targets with a unique build environment cannot be built with an installed engine.". I initially removed the "&" and used my build command in CMD, however using the "&" and PowerShell still results in the same error. My build command is "C:\Programs\Unreal Engine 5.3.2-CSS-66\Engine\Build\BatchFiles\Build.bat" -projectfiles -project="C:\Programs\Unreal Engine 5.3.2-CSS-66\FactoryGame.uproject" -game -rocket -progress. I have searched the docs for this error, but have not found anything detailing it. Could this be some kind of installation issue, or something different?
Solution
Update: This morning I decided to simply nuke my Unreal Editor installation and start over. This time I left the default UE installation folder name alone and put the starter project files in a subfolder. After re-integrating Wwise with the start project again, I used the context menu to generate the VS files and it worked without any errors! Now, instead of the file path looking like "C:\Programs\Unreal Engine 5.3.2-CSS-66 (raw project files stored here without a subfolder)" it now looks like "C:\Programs\Unreal Engine - CSS\SatisfactoryModLoader-master (project files stored in this subfolder)". Hopefully this helps someone else having the same issue. Thanks for the help and suggestions.
Was this page helpful?