Skip to content

Commit facbf67

Browse files
committed
add most of template compat. validation
1 parent 3b39610 commit facbf67

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"Creational",
2929
"designpattern",
3030
"forminline",
31+
"mauilib",
3132
"minwebapi",
3233
"mstest",
3334
"netcoreapp",

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { CommandRegister } from "./CommandRegister";
55
* This method is called when the extension is activated
66
*/
77
export function activate(context: vscode.ExtensionContext) {
8-
const commands = CommandRegister.getInstance(context);
9-
commands.initializeCommands();
8+
const commands = CommandRegister.getInstance(context);
9+
commands.initializeCommands();
1010
}
1111

1212
/**

src/utils/terminal-cmd.provider.ts

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
import * as vscode from "vscode";
23

34
export type Message = {
@@ -15,7 +16,40 @@ export type TemplateCompatibility = {
1516

1617
export const TEMPLATE_COMPATIBILITY: TemplateCompatibility = {
1718
react: ["net5.0", "net6.0", "net7.0"],
18-
// add other templates here
19+
maui: ["net7.0", "net8.0"],
20+
"maui-blazor": ["net7.0", "net8.0"],
21+
mauilib: ["net7.0", "net8.0"],
22+
"maui-page-csharp": ["net7.0", "net8.0"],
23+
"maui-page-xaml": ["net7.0", "net8.0"],
24+
"maui-view-csharp": ["net7.0", "net8.0"],
25+
"maui-view-xaml": ["net7.0", "net8.0"],
26+
"maui-dict-xaml": ["net7.0", "net8.0"],
27+
android: ["net6.0", "net7.0", "net8.0"],
28+
androidlib: ["net6.0", "net7.0", "net8.0"],
29+
webapi: ["net5.0", "net6.0", "net7.0", "net8.0"],
30+
webapiaot: ["net7.0", "net8.0"],
31+
apicontroller: ["net5.0", "net6.0", "net7.0", "net8.0"],
32+
blazorserver: ["net5.0", "net6.0", "net7.0", "net8.0"],
33+
"blazorserver-empty": ["net5.0", "net6.0", "net7.0", "net8.0"],
34+
blazor: ["net5.0", "net6.0", "net7.0", "net8.0"],
35+
"blazorwasm-empty": ["net5.0", "net6.0", "net7.0", "net8.0"],
36+
blazorwasm: ["net5.0", "net6.0", "net7.0", "net8.0"],
37+
classlib: ["netstandard2.0", "netstandard2.1", "net5.0", "net6.0", "net7.0", "net8.0"],
38+
console: ["net5.0", "net6.0", "net7.0", "net8.0"],
39+
grpc: ["net5.0", "net6.0", "net7.0", "net8.0"],
40+
mvc: ["net5.0", "net6.0", "net7.0", "net8.0"],
41+
webapp: ["net5.0", "net6.0", "net7.0", "net8.0"],
42+
angular: ["net5.0", "net6.0", "net7.0", "net8.0"],
43+
ios: ["net6.0", "net7.0", "net8.0"],
44+
ioslib: ["net6.0", "net7.0", "net8.0"],
45+
mstest: ["net5.0", "net6.0", "net7.0", "net8.0"],
46+
"mstest-playwright": ["net6.0", "net7.0", "net8.0"],
47+
nunit: ["net5.0", "net6.0", "net7.0", "net8.0"],
48+
"nunit-playwright": ["net6.0", "net7.0", "net8.0"],
49+
xunit: ["net5.0", "net6.0", "net7.0", "net8.0"],
50+
winforms: ["net5.0", "net6.0", "net7.0", "net8.0"],
51+
wpf: ["net5.0", "net6.0", "net7.0", "net8.0"],
52+
// ... Add more templates as needed
1953
};
2054

2155
export class Command {

0 commit comments

Comments
 (0)