Generate VS Project Files by Command Line

if you want to do it through powershell, here is my example:

$ProjectName = 'QuestTemplate'
$ProjectPath = 'D:/Projects/Experimenting/QuestTemplate5.1'
$EnginePath = 'D:/Engines/UE_Oculus_5.1/UnrealEngine'
$ProjectFile = Join-Path $ProjectPath "$ProjectName.uproject"
$BuildTool = Join-Path -Path $EnginePath -ChildPath 'Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe'

Start-Process -Wait -NoNewWindow -FilePath $BuildTool -ArgumentList '-projectfiles', "-project=$ProjectFile", '-game', '-rocket', '-progress'

Set-Location $PSScriptRoot
1 Like