# UBT C# program project support?

**URL:** <https://forums.unrealengine.com/t/ubt-c-program-project-support/2228802>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, ubt, question\
**Created:** [December 17, 2024, 7:24pm UTC](https://forums.unrealengine.com/t/ubt-c-program-project-support/2228802 "2024-12-17T19:24:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse\_OKD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jesse\_OKD](https://forums.unrealengine.com/u/Jesse_OKD)\
**Post date:** [December 17, 2024, 7:24pm UTC](https://forums.unrealengine.com/t/ubt-c-program-project-support/2228802/1 "2024-12-17T19:24:20Z")

</div>

I have an Unreal project with 2 core pieces:

1. A normal Unreal game project (“GameProject”)
2. A C# uprogram project (“DotNetProject”)

Currently, GameProject runs a dotnet hosting environment via packaged dlls (hostfxr), and in this environment I load prebuilt dlls of DotNetProject.

I’d like to be able to add DotNetProject as a dependency of GameProject, so that when I’m developing in Visual Studio and make a change to DotNetProject, and then try to run GameProject, it knows to rebuild DotNetProject.

The closest I’ve gotten is running a buildgraph which first calls a dotnet action to build the C# program project, then copies its output to a folder where GameProject looks during packaging. The problem here is I frequently forget to run this graph before my next F5 debugging session, and so I debug with stale dlls.

Is there any way to get UBT and/or Visual Studio to recognize DotNetProject as a dependency of GameProject and automatically build it if it’s out of date?
