SmartSkills.MSBuild 0.1.0-preview2

This is a prerelease version of SmartSkills.MSBuild.
dotnet add package SmartSkills.MSBuild --version 0.1.0-preview2
                    
NuGet\Install-Package SmartSkills.MSBuild -Version 0.1.0-preview2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SmartSkills.MSBuild" Version="0.1.0-preview2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartSkills.MSBuild" Version="0.1.0-preview2" />
                    
Directory.Packages.props
<PackageReference Include="SmartSkills.MSBuild">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SmartSkills.MSBuild --version 0.1.0-preview2
                    
#r "nuget: SmartSkills.MSBuild, 0.1.0-preview2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SmartSkills.MSBuild@0.1.0-preview2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SmartSkills.MSBuild&version=0.1.0-preview2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SmartSkills.MSBuild&version=0.1.0-preview2&prerelease
                    
Install as a Cake Tool

SmartSkills.MSBuild

NuGet NuGet Downloads

MSBuild integration for SmartSkills — automatically resolve and install agent skills during build based on your project's package references.

Installation

dotnet add package SmartSkills.MSBuild

Since this is a build-only dependency, it should be marked with PrivateAssets="all" so it doesn't flow to consumers:

<PackageReference Include="SmartSkills.MSBuild" PrivateAssets="all" />

How It Works

When you build your project, SmartSkills.MSBuild runs two targets automatically:

  1. ResolveSmartSkills (before build) — scans your project's package references and matches them against the skill registry
  2. InstallSmartSkills (after resolve) — downloads and installs matched skills to .agents/skills

Both targets are gated by the SmartSkillsEnabled property and are safe for multi-targeting projects (runs only once per build).

Skills are installed transitively — adding the package to any project in a dependency chain enables skill resolution.

Configuration

MSBuild Property Default Description
SmartSkillsEnabled true Enable or disable skill acquisition
SmartSkillsOutputDirectory $(MSBuildProjectDirectory)\.agents\skills Directory where skills are installed

Disabling for Specific Configurations

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
  <SmartSkillsEnabled>false</SmartSkillsEnabled>
</PropertyGroup>

Custom Output Directory

<PropertyGroup>
  <SmartSkillsOutputDirectory>$(SolutionDir).agents\skills</SmartSkillsOutputDirectory>
</PropertyGroup>

Disabling via Command Line

dotnet build -p:SmartSkillsEnabled=false

Example

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="SmartSkills.MSBuild" PrivateAssets="all" />
    <PackageReference Include="Azure.Identity" />
    <PackageReference Include="StackExchange.Redis" />
  </ItemGroup>

</Project>

Building this project automatically installs the azure-identity-dotnet and redis-development skills into .agents/skills/.

Further Reading

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview2 51 2/14/2026
0.1.0-preview 53 2/12/2026