How to generate workspace project file from outside the Unreal Editor? (not .SLN) [SOLVED]

Currently fails to open the .uproject.
I’m currently using other computer.
I tried to rebuilt the project from compressed Zip.
Then I was told to regenerate the project files.
However, Currently there is only a button for Generate visual studio files, not VSCode.

I have solved it thanks to the forums and chat gpt.

I did the following :

  1. delete the .sln file if its available
  2. inside the game folder Game_Name/Saved/UnrealBuildTool/ open file BuildConfiguration.xml
  3. Added this line to the file
<?xml version="1.0" encoding="utf-8" ?> VisualStudioCode
  1. Rebuild and it will generate .workspace instead of sln.
1 Like
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
  <Project>
    <Target>
      <Name>VisualStudioCode</Name>
    </Target>
  </Project>
</Configuration>

for some reason the forum erased my stylings. here it is

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.