Skip to content

Commit 1088b59

Browse files
release: v1.2.0 — multi-target net8.0, NuGet cache, release workflow
Version bump to 1.2.0 across csproj, server.json, Program.cs, and README.md. Added: - Multi-target net8.0 + net10.0 for broader adoption - NuGet version lookup cache (30-min TTL) - GitHub Releases workflow (tag-triggered, auto-release notes) - Dependabot for NuGet and GitHub Actions - Enhanced copilot-instructions.md with validation/analysis routing - template_validate promoted as hero feature in README Fixed: - McpFeatureFlags.IsEnabled() case-insensitive comparison - Program.cs ServerInfo version synced with package version Package: DotnetTemplateMCP.1.2.0.nupkg (6.5 MB, net8.0 + net10.0) Tests: 370 passed (185 x 2 frameworks) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4161b39 commit 1088b59

7 files changed

Lines changed: 42 additions & 12 deletions

File tree

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
labels:
9+
- "dependencies"
10+
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"
15+
open-pull-requests-limit: 5
16+
labels:
17+
- "dependencies"

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.2.0] - 2026-03-06
9+
10+
### Added
11+
- **Multi-target net8.0 and net10.0** — broadens adoption to .NET 8 LTS users. The tool package includes both framework builds; the correct one is selected at runtime. Template engine packages use `VersionOverride` (8.0.406 for net8.0, 10.0.103 for net10.0).
12+
- **NuGet version lookup cache**`NuGetVersionResolver` now caches results in a `ConcurrentDictionary` with 30-minute TTL, eliminating redundant API calls for repeated package lookups within a session.
13+
- **GitHub Releases workflow** — push a `v*` tag to auto-create a GitHub Release with install instructions, auto-generated release notes, and `.nupkg` artifact attached.
14+
- **Dependabot configuration** — automated weekly dependency updates for NuGet packages and GitHub Actions.
15+
- **Enhanced Copilot instructions**`.github/copilot-instructions.md` now routes `template_validate`, `template_create_from_existing`, `solution_analyze`, and `template_compose` to the appropriate MCP tools.
16+
- **`template_validate` as hero feature** — prominent section in README with example output; enriched tool-reference.md with full example response and usage guidance.
17+
18+
### Fixed
19+
- **`McpFeatureFlags.IsEnabled()` case sensitivity** — replaced explicit 9-casing switch with `StringComparison.OrdinalIgnoreCase`, correctly handling all case variants of `false`, `no`, `off`.
20+
- **`Program.cs` ServerInfo version** — was hardcoded to `1.0.0`, now matches package version.
21+
822
## [1.0.0] - 2026-03-02
923

1024
### Added

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ No existing tooling does this — most template authors discover issues only aft
7373
### Global tool (.NET 8+)
7474

7575
```bash
76-
dotnet tool install --global DotnetTemplateMCP --version 1.1.0
76+
dotnet tool install --global DotnetTemplateMCP --version 1.2.0
7777
```
7878

7979
### Zero-install with `dnx` (.NET 10+)
8080

8181
```bash
82-
dnx -y DotnetTemplateMCP --version 1.1.0
82+
dnx -y DotnetTemplateMCP --version 1.2.0
8383
```
8484

8585
### VS Code / GitHub Copilot
@@ -92,7 +92,7 @@ Add to `mcp.json`:
9292
"dotnet-templates": {
9393
"type": "stdio",
9494
"command": "dnx",
95-
"args": ["-y", "DotnetTemplateMCP", "--version", "1.1.0"]
95+
"args": ["-y", "DotnetTemplateMCP", "--version", "1.2.0"]
9696
}
9797
}
9898
}

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
33
"name": "io.github.YuliiaKovalova/dotnet-template-mcp",
44
"description": "Search, inspect, preview, and create .NET projects from dotnet new templates via AI agents.",
5-
"version": "1.1.0",
5+
"version": "1.2.0",
66
"repository": {
77
"url": "https://github.com/YuliiaKovalova/dotnet-template-mcp",
88
"source": "github",
@@ -12,7 +12,7 @@
1212
{
1313
"registryType": "nuget",
1414
"identifier": "DotnetTemplateMCP",
15-
"version": "1.1.0",
15+
"version": "1.2.0",
1616
"runtimeHint": "dnx",
1717
"runtimeArguments": [
1818
{

src/Microsoft.TemplateEngine.MCP/McpFeatureFlags.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ private static bool IsEnabled(string envVar, bool defaultValue)
146146
return defaultValue;
147147
}
148148

149-
return value switch
150-
{
151-
"0" or "false" or "False" or "FALSE" or "no" or "No" or "NO" or "off" or "Off" or "OFF" => false,
152-
_ => true,
153-
};
149+
return !value.Equals("false", StringComparison.OrdinalIgnoreCase)
150+
&& !value.Equals("no", StringComparison.OrdinalIgnoreCase)
151+
&& !value.Equals("off", StringComparison.OrdinalIgnoreCase)
152+
&& value != "0";
154153
}
155154
}
156155

src/Microsoft.TemplateEngine.MCP/Microsoft.TemplateEngine.MCP.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageId>DotnetTemplateMCP</PackageId>
1111
<ToolCommandName>template-engine-mcp</ToolCommandName>
1212
<IsPackable>true</IsPackable>
13-
<Version>1.1.0</Version>
13+
<Version>1.2.0</Version>
1414
<Authors>YuliiaKovalova</Authors>
1515
<PackageProjectUrl>https://github.com/YuliiaKovalova/dotnet-template-mcp</PackageProjectUrl>
1616
<RepositoryUrl>https://github.com/YuliiaKovalova/dotnet-template-mcp</RepositoryUrl>

src/Microsoft.TemplateEngine.MCP/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private static void ConfigureMcpServer(ModelContextProtocol.Server.McpServerOpti
9797
options.ServerInfo = new()
9898
{
9999
Name = "Microsoft.TemplateEngine.MCP",
100-
Version = "1.0.0"
100+
Version = "1.2.0"
101101
};
102102
}
103103
}

0 commit comments

Comments
 (0)