In order to build AI application with .NET, we have three options the first one is using Gemerative AI with .NET, AI Services in .NET, and Machine Learning with .NET.
You can get started in .NET artificial intelligence & machine learning (microsoft.com)