This file is designed to be used with AI coding assistants (like GitHub Copilot, Claude, ChatGPT, etc.)
To update this template to a newer .NET version:
- Open this file in your IDE with an AI assistant enabled
- Ask the AI: "Update this project to .NET [VERSION] using the instructions in UPDATE_INSTRUCTIONS.md"
- The AI will use the instructions below to update all necessary files
When asked to update this project to a new .NET version, perform the following updates:
Update the following files:
src/NetDaemon.Templates.Project/NetDaemon.Templates.Project.csprojsrc/NetDaemon.Templates.Project/templates/netdaemon/NetDaemonApps.csprojsrc/NetDaemon.Templates.Project/templates/netdaemon_src/Debug.csproj
Changes required:
- Update
<TargetFramework>to the new .NET version (e.g.,net11.0) - Update
<LangVersion>to the corresponding C# version:- .NET 10 → C# 14.0
- .NET 11 → C# 15.0
- .NET 12 → C# 16.0
- (Pattern: .NET version - 4 = LangVersion offset from C# 10.0)
Update the following files:
src/NetDaemon.Templates.Project/templates/netdaemon/Dockerfilesrc/NetDaemon.Templates.Project/templates/netdaemon_src/Dockerfile
Changes required:
- Update
FROM mcr.microsoft.com/dotnet/sdk:X.0to new version - Update
FROM mcr.microsoft.com/dotnet/aspnet:X.0to new version
Update the following files:
src/NetDaemon.Templates.Project/templates/netdaemon/.vscode/launch.jsonsrc/NetDaemon.Templates.Project/templates/netdaemon_src/.vscode/launch.json
Changes required:
- Update debug paths from
bin/Debug/netX.0/to new version
Update the following files:
.github/workflows/tags_nuget.yml
Changes required:
- Update the step name
Install .Net Xto new version - Update
dotnet-version: "X.0.x"to new version
After making changes:
- Search for any remaining references to the old version (e.g.,
net9.0,net10.0) - Check for any hardcoded SDK version numbers
- Verify all Dockerfiles reference the same version
- Ensure GitHub Actions and project files are consistent
When updating from .NET 10 to .NET 11:
net10.0→net11.0LangVersion>14.0→LangVersion>15.0dotnet/sdk:10.0→dotnet/sdk:11.0dotnet/aspnet:10.0→dotnet/aspnet:11.0bin/Debug/net10.0/→bin/Debug/net11.0/dotnet-version: "10.0.x"→dotnet-version: "11.0.x"
- 2025-11-14: Updated to .NET 10 / C# 14.0
- Previous: .NET 9 / C# 13.0