Description

After installing the UnrealVS version that arrived with 5.3. I can no longer use CompileSingleFile. It does however work on the Lyra project. One difference I notived, however, is that Lyra seems to be placed within UE5, e.g.

 

/UE5/Samples/Games/Lyra/Lyra.uproject

/UE5/Engine/Build/BuildBatchFiles/Build.bat

 

Whereas our project is beside the UE5 path with our own solution

 

/UE5/Engine/Build/BuildBatchFiles/Build.bat

/MyProject/MyProject.sln

 

Not sure if it's related, but I saw that there was a fix to CompileSingleFile.cs that added a hard coded relative path:

 

BuildCommandLine = BuildCommandLine.Replace("$(BuildBatchScript)", "..[Link Removed]");

 

which to me seems like it could be related.

Steps to Reproduce
  1. Install UnrealVS
  2. Generate and open a project outside of the p4 depot root in visual studio 2022
  3. Open a project specific CPP
  4. Run UnrealVS Compile Single File
  5. Notice error, such as:
1>------ Build started: Project: MyProject, Configuration: DebugGame_Editor x64 ------1> Compiling D:\projects\dev\MyProject\Source\TestFile.cpp1> The system cannot find the path specified. 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-196978 in the post.

2
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - UnrealVS
Affects Versions5.3
Target Fix5.4
Fix Commit29899891
Main Commit29899924
CreatedOct 2, 2023
ResolvedNov 22, 2023
UpdatedJan 8, 2024
View Jira Issue