What is the best way to add an external Visual Studio Project (.sln) to Unreal

Hello, guys!

We have an external Microsoft Visual Studio project (a solution (.sln) file that contains several vcxproj), that builds a DLL of a third-party service. Currently we are building the dll from the external solution, and then we are loading it from the Unreal project, which works fine.

Is there a way to include the external project files (the .sln or the .vcxproj) into the Unreal project? Our goal is to:

  1. To include all source files in order to easily locate, place breakpoints and debug it.
  2. To build the external DLL from the Unreal solution.

Hello!

There is no direct support for external (non-UE) based project in the generation tool. You can work around the project by making a copy of the generated solution and renaming it. That renamed solution will be stable until a new engine version or when a new project\program is added. You can also set your project as a dependency of the Unreal game as this information is stored at the solution level.

Martin

Thanks, Martin!