Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions templates/Avalonia/AvaloniaSolution/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
"dataType":"bool",
"defaultValue": "false",
"description": "Use legacy .sln format instead of .slnx format"
},
"no-ai": {
"type": "parameter",
"dataType":"bool",
"defaultValue": "false",
"description": "Exclude AI configuration files (.vscode/mcp.json)"
}
},
"sources": [
Expand Down Expand Up @@ -67,6 +73,12 @@
"exclude": [
"SampleAvaloniaApplication.Tests/*"
]
},
{
"condition": "(no-ai)",
"exclude": [
".vscode/mcp.json"
]
}
]
}
Expand Down
12 changes: 12 additions & 0 deletions templates/Avalonia/AvaloniaSolution/.vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"msdocs": {
"command": "npx",
"args": ["-y", "@microsoft/mcp-server-docs"]
}
}
}
17 changes: 16 additions & 1 deletion templates/Avalonia/AvaloniaSolution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ Create a new app in your current directory by running.
| Parameter | Description | Default |
|-----------|-------------|---------|
| `--sln` | Use legacy .sln format instead of .slnx format | `false` |
| `--no-ai` | Exclude AI configuration files (.vscode/mcp.json) | `false` |

**Example with legacy .sln format:**
```cli
> dotnet new keboo.avalonia --sln true
```

**Example without AI configuration:**
```cli
> dotnet new keboo.avalonia --no-ai true
```

## Updating .NET Version

This template uses a `global.json` file to specify the required .NET SDK version. To update the .NET SDK version:
Expand Down Expand Up @@ -48,4 +54,13 @@ By default, this template uses the new `.slnx` (XML-based solution) format intro
[Blog: Introducing slnx support in the dotnet CLI](https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/?WT.mc_id=DT-MVP-5003472)
[Docs: dotnet sln command](https://learn.microsoft.com/dotnet/core/tools/dotnet-sln?WT.mc_id=DT-MVP-5003472)

If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.
If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.

### AI Configuration (Model Context Protocol)
By default, this template includes a `.vscode/mcp.json` configuration file for AI development assistants supporting the [Model Context Protocol](https://modelcontextprotocol.io/). The configuration includes:
- **context7**: Provides semantic code search and contextual understanding
- **msdocs**: Access to Microsoft documentation directly in your AI assistant

Supported in [Visual Studio](https://learn.microsoft.com/visualstudio/ide/mcp-servers?WT.mc_id=DT-MVP-5003472) and [VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers?wt.md_id=AZ-MVP-5004796).

If you prefer not to include AI configuration, use the `--no-ai true` parameter when creating the template.
12 changes: 12 additions & 0 deletions templates/Console/ConsoleApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
"defaultValue": "github",
"description": "The CI/CD provider to use"
},
"no-ai": {
"type": "parameter",
"dataType":"bool",
"defaultValue": "false",
"description": "Exclude AI configuration files (.vscode/mcp.json)"
},
"useGitHub": {
"type": "computed",
"value": "(pipeline == \"github\")"
Expand Down Expand Up @@ -112,6 +118,12 @@
"exclude": [
".github/**"
]
},
{
"condition": "(no-ai)",
"exclude": [
".vscode/mcp.json"
]
}
]
}
Expand Down
12 changes: 12 additions & 0 deletions templates/Console/ConsoleApp/.vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"msdocs": {
"command": "npx",
"args": ["-y", "@microsoft/mcp-server-docs"]
}
}
}
17 changes: 16 additions & 1 deletion templates/Console/ConsoleApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Create a new app in your current directory by running.
|-----------|-------------|---------|
| `--pipeline` | CI/CD provider to use. Options: `github`, `azuredevops` | `github` |
| `--sln` | Use legacy .sln format instead of .slnx format | `false` |
| `--no-ai` | Exclude AI configuration files (.vscode/mcp.json) | `false` |

**Example with Azure DevOps:**
```cli
Expand All @@ -27,6 +28,11 @@ Create a new app in your current directory by running.
> dotnet new keboo.console --sln true
```

**Example without AI configuration:**
```cli
> dotnet new keboo.console --no-ai true
```

## Updating .NET Version

This template uses a `global.json` file to specify the required .NET SDK version. To update the .NET SDK version:
Expand Down Expand Up @@ -54,4 +60,13 @@ By default, this template uses the new `.slnx` (XML-based solution) format intro
[Blog: Introducing slnx support in the dotnet CLI](https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/?WT.mc_id=DT-MVP-5003472)
[Docs: dotnet sln command](https://learn.microsoft.com/dotnet/core/tools/dotnet-sln?WT.mc_id=DT-MVP-5003472)

If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.
If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.

### AI Configuration (Model Context Protocol)
By default, this template includes a `.vscode/mcp.json` configuration file for AI development assistants supporting the [Model Context Protocol](https://modelcontextprotocol.io/). The configuration includes:
- **context7**: Provides semantic code search and contextual understanding
- **msdocs**: Access to Microsoft documentation directly in your AI assistant

Supported in [Visual Studio](https://learn.microsoft.com/visualstudio/ide/mcp-servers?WT.mc_id=DT-MVP-5003472) and [VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers?wt.md_id=AZ-MVP-5004796).

If you prefer not to include AI configuration, use the `--no-ai true` parameter when creating the template.
12 changes: 12 additions & 0 deletions templates/Library/NuGet/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
"defaultValue": "github",
"description": "The CI/CD provider to use"
},
"no-ai": {
"type": "parameter",
"dataType":"bool",
"defaultValue": "false",
"description": "Exclude AI configuration files (.vscode/mcp.json)"
},
"useGitHub": {
"type": "computed",
"value": "(pipeline == \"github\")"
Expand Down Expand Up @@ -113,6 +119,12 @@
"exclude": [
".github/**"
]
},
{
"condition": "(no-ai)",
"exclude": [
".vscode/mcp.json"
]
}
]
}
Expand Down
12 changes: 12 additions & 0 deletions templates/Library/NuGet/.vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"msdocs": {
"command": "npx",
"args": ["-y", "@microsoft/mcp-server-docs"]
}
}
}
17 changes: 16 additions & 1 deletion templates/Library/NuGet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Create a new app in your current directory by running.
|-----------|-------------|---------|
| `--pipeline` | CI/CD provider to use. Options: `github`, `azuredevops` | `github` |
| `--sln` | Use legacy .sln format instead of .slnx format | `false` |
| `--no-ai` | Exclude AI configuration files (.vscode/mcp.json) | `false` |

**Example with Azure DevOps:**
```cli
Expand All @@ -27,6 +28,11 @@ Create a new app in your current directory by running.
> dotnet new keboo.nuget --sln true
```

**Example without AI configuration:**
```cli
> dotnet new keboo.nuget --no-ai true
```

## Updating .NET Version

This template uses a `global.json` file to specify the required .NET SDK version. To update the .NET SDK version:
Expand Down Expand Up @@ -54,4 +60,13 @@ By default, this template uses the new `.slnx` (XML-based solution) format intro
[Blog: Introducing slnx support in the dotnet CLI](https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/?WT.mc_id=DT-MVP-5003472)
[Docs: dotnet sln command](https://learn.microsoft.com/dotnet/core/tools/dotnet-sln?WT.mc_id=DT-MVP-5003472)

If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.
If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.

### AI Configuration (Model Context Protocol)
By default, this template includes a `.vscode/mcp.json` configuration file for AI development assistants supporting the [Model Context Protocol](https://modelcontextprotocol.io/). The configuration includes:
- **context7**: Provides semantic code search and contextual understanding
- **msdocs**: Access to Microsoft documentation directly in your AI assistant

Supported in [Visual Studio](https://learn.microsoft.com/visualstudio/ide/mcp-servers?WT.mc_id=DT-MVP-5003472) and [VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers?wt.md_id=AZ-MVP-5004796).

If you prefer not to include AI configuration, use the `--no-ai true` parameter when creating the template.
12 changes: 12 additions & 0 deletions templates/WPF/WpfApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
"defaultValue": "github",
"description": "The CI/CD provider to use"
},
"no-ai": {
"type": "parameter",
"dataType":"bool",
"defaultValue": "false",
"description": "Exclude AI configuration files (.vscode/mcp.json)"
},
"useGitHub": {
"type": "computed",
"value": "(pipeline == \"github\")"
Expand Down Expand Up @@ -104,6 +110,12 @@
"exclude": [
".github/**"
]
},
{
"condition": "(no-ai)",
"exclude": [
".vscode/mcp.json"
]
}
]
}
Expand Down
12 changes: 12 additions & 0 deletions templates/WPF/WpfApp/.vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"msdocs": {
"command": "npx",
"args": ["-y", "@microsoft/mcp-server-docs"]
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot the microsoft docs should use this configuration over npx:

    "type": "http",
    "url": "https://learn.microsoft.com/api/mcp"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot fix this

}
}
}
17 changes: 16 additions & 1 deletion templates/WPF/WpfApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Create a new app in your current directory by running.
|-----------|-------------|---------|
| `--pipeline` | CI/CD provider to use. Options: `github`, `azuredevops` | `github` |
| `--sln` | Use legacy .sln format instead of .slnx format | `false` |
| `--no-ai` | Exclude AI configuration files (.vscode/mcp.json) | `false` |

**Example with Azure DevOps:**
```cli
Expand All @@ -26,6 +27,11 @@ Create a new app in your current directory by running.
> dotnet new keboo.wpf --sln true
```

**Example without AI configuration:**
```cli
> dotnet new keboo.wpf --no-ai true
```

## Updating .NET Version

This template uses a `global.json` file to specify the required .NET SDK version. To update the .NET SDK version:
Expand Down Expand Up @@ -80,4 +86,13 @@ By default, this template uses the new `.slnx` (XML-based solution) format intro
[Blog: Introducing slnx support in the dotnet CLI](https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/?WT.mc_id=DT-MVP-5003472)
[Docs: dotnet sln command](https://learn.microsoft.com/dotnet/core/tools/dotnet-sln?WT.mc_id=DT-MVP-5003472)

If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.
If you need to use the legacy `.sln` format, use the `--sln true` parameter when creating the template.

### AI Configuration (Model Context Protocol)
By default, this template includes a `.vscode/mcp.json` configuration file for AI development assistants supporting the [Model Context Protocol](https://modelcontextprotocol.io/). The configuration includes:
- **context7**: Provides semantic code search and contextual understanding
- **msdocs**: Access to Microsoft documentation directly in your AI assistant

Supported in [Visual Studio](https://learn.microsoft.com/visualstudio/ide/mcp-servers?WT.mc_id=DT-MVP-5003472) and [VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers?wt.md_id=AZ-MVP-5004796).

If you prefer not to include AI configuration, use the `--no-ai true` parameter when creating the template.
Loading