© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
CrosRoad95

ActivatorUtilities.CreateInstance replacment for native AOT

as in title, how can i replace ActivatorUtilities.CreateInstance function? right now it complain that:
Error in startup A suitable constructor for type '<type>' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
Error in startup A suitable constructor for type '<type>' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Native AoT dependency issues
C#CC# / help
11mo ago
❔ C# native aot reflections
C#CC# / help
3y ago
Native AOT is not supported
C#CC# / help
2mo ago