Skip to content

Commit

Permalink
Add .NET 9.0 to list of runtimes and update backup templates (#4298)
Browse files Browse the repository at this point in the history
* changes for net9.0

* Update backup templates
  • Loading branch information
nturinski authored Oct 8, 2024
1 parent e1dc3df commit 9a34002
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 3 deletions.
Binary file modified resources/backupTemplates/dotnet/~4/net6.0-isolated/item.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net6.0-isolated/project.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net6.0/item.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net6.0/project.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net7.0-isolated/item.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net7.0-isolated/project.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net8.0-isolated/item.nupkg
Binary file not shown.
Binary file modified resources/backupTemplates/dotnet/~4/net8.0-isolated/project.nupkg
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/backupTemplates/dotnet/~4/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.83.0
4.91.0
2 changes: 1 addition & 1 deletion resources/backupTemplates/script/~4/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.83.0
4.91.0
2 changes: 1 addition & 1 deletion src/templates/dotnet/executeDotnetTemplateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function getFramework(context: IActionContext, workingDirectory: string |
}

// Prioritize "LTS", then "Current", then "Preview"
const netVersions: string[] = ['6.0', '7.0', '8.0'];
const netVersions: string[] = ['6.0', '7.0', '8.0', '9.0'];
const semVersions: SemVer[] = netVersions.map(v => semVerCoerce(v) as SemVer);

let pickedVersion: SemVer | undefined;
Expand Down
1 change: 1 addition & 0 deletions test/updateBackupTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ suite('Backup templates', () => {
{ language: ProjectLanguage.CSharp, projectTemplateKey: 'net6.0-isolated', versions: [FuncVersion.v4] },
{ language: ProjectLanguage.CSharp, projectTemplateKey: 'net7.0-isolated', versions: [FuncVersion.v4] },
{ language: ProjectLanguage.CSharp, projectTemplateKey: 'net8.0-isolated', versions: [FuncVersion.v4] },
{ language: ProjectLanguage.CSharp, projectTemplateKey: 'net9.0-isolated', versions: [FuncVersion.v4] },
{ language: ProjectLanguage.Java, versions: [FuncVersion.v4] }
];

Expand Down
16 changes: 16 additions & 0 deletions tools/JsonCli/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@
"${workspaceFolder}/src/Microsoft.TemplateEngine.JsonCli.csproj"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish (9.0)",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"--configuration",
"Release",
"--framework",
"net9.0",
"--output",
"${workspaceFolder}/../../resources/dotnetJsonCli/net9.0/",
"${workspaceFolder}/src/Microsoft.TemplateEngine.JsonCli.csproj"
],
"problemMatcher": "$msCompile"
}
]
}

0 comments on commit 9a34002

Please sign in to comment.