Looking for Guidance - Building a .NET API to Serve MPXJ Data to a React Gantt Component

Hi everyone,

I am currently working on a project where I need to build a robust API in .NET (ASP.NET Core) that reads project schedule data using the MPXJ library (supporting .xer and .mpp files), and serves it to a React frontend using the DHTMLX Gantt chart component.

I am looking for best practices or advice on the following:

-Structuring a clean and efficient DTO (Data Transfer Object) that maps well with DHTMLX Gantt’s task, wbs and link format

  • API design tips to optimize for performance and frontend parsing.
    -Any real-world examples or repos where this integration is done
    -How to handle WBS and summary task nesting effectively
  • Supporting task dependencies (FS, SS, FF, SF).

If you have worked on something similar or have recommendations, I’d really appreciate your insights.

Thanks

Hello Osama,
There is the MSP export module that allows importing MSP and Primavera files:
https://docs.dhtmlx.com/gantt/desktop__msp_export_module.html

So, if your license includes that, you can download it from the Client’s Area:

Otherwise, you need to manually implement a custom solution.

Here are the articles that list all task and link properties used in DHTMLX Gantt:
https://docs.dhtmlx.com/gantt/desktop__task_properties.html

https://docs.dhtmlx.com/gantt/desktop__link_properties.html