How to add new code to ConfigureServices in Startup.cs

Hi!
How can be added code to ConfigureServices in Startup.cs without being overwritten?
I want to register a new service but it is deleted after Radzen IDE recreates the file.
Thanks!

Have you tried adding it to Startup.Custom.cs ?
see https://www.radzen.com/documentation/customizing-generated-application/#custom-startup

1 Like

Thanks! I´ll try! :slight_smile: .