Add a sample to be used for the AI work #33079
Draft
+4,308
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the new
Essentials.AIlibrary to the codebase, along with its associated sample and test projects. It updates solution and project files to include these new components and ensures they are properly referenced for builds and package management. Additionally, it adds configuration support for AI-related target frameworks and dependencies.AI Library Integration:
Added new projects for
Essentials.AI, includingEssentials.AI.Sample,Essentials.AI.Benchmarks,Essentials.AI.DeviceTests, andEssentials.AI.UnitTeststo all main solution files (Microsoft.Maui.sln,Microsoft.Maui-dev.sln,Microsoft.Maui-vscode.sln) and solution filter files. This organizes the AI code into its own source, samples, and test folders. [1] [2] [3] [4] [5] [6] [7]Updated solution configuration sections to include build and active configuration mappings for all new AI projects, ensuring they are built in Debug and Release modes. [1] [2] [3]
Updated solution folder structure and project nesting to group AI projects under appropriate folders in the solution explorer. [1] [2] [3]
Build and Package Management:
Microsoft.Extensions.AIandMicrosoft.Extensions.AI.Abstractionsas NuGet dependencies, including their version and repository details ineng/NuGetVersions.targetsandeng/Version.Details.xml. Also addedMicrosoft.Extensions.Httpfor supporting HTTP operations in AI workflows. [1] [2] [3]Target Framework Configuration:
Directory.Build.propsto add new properties and platform lists forEssentials.AItarget frameworks, including support for previous and current .NET versions and macOS targets. [1] [2]These changes collectively enable development, testing, and packaging of the new
Essentials.AIlibrary within the broader Maui ecosystem.