Microsoft introduces .NET AI template preview to streamline AI development
Microsoft has unveiled the first preview of the .NET AI Template, marking a significant step toward simplifying AI integration for developers. This new initiative aims to streamline the process of building AI-powered applications within the .NET ecosystem. Stay tuned for more details on how this enhances AI development workflows.
Here’s how:
Install the template: Run dotnet new install Microsoft.Extensions.AI.Templates in your terminal to make it available in Visual Studio, VS Code, or your working directory.
In Visual Studio:
Go to File > New Project and search for AI Chat or select the AI project type.
Choose your project name and location, then select an AI model provider and vector store to begin.
In VS Code with C# Dev Kit:
Install the C# Dev Kit extension.
Use the .NET New Project command to create a new project with GitHub Models.