Skip to content

Commit 7c52be5

Browse files
Stop generating .template.config files dynamically. Convert them to plain files on disk.
1 parent 900e9ca commit 7c52be5

File tree

19 files changed

+750
-136
lines changed

19 files changed

+750
-136
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
}
17+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"author": "Microsoft",
3+
"classifications": [
4+
"Web",
5+
"MVC",
6+
"SPA"
7+
],
8+
"groupIdentity": "Microsoft.DotNet.Web.Spa.ProjectTemplates.Angular",
9+
"identity": "Microsoft.DotNet.Web.Spa.ProjectTemplates.Angular.CSharp",
10+
"name": "ASP.NET Core with Angular",
11+
"preferNameDirectory": true,
12+
"primaryOutputs": [
13+
{
14+
"path": "WebApplicationBasic.csproj"
15+
}
16+
],
17+
"shortName": "angular",
18+
"sourceName": "WebApplicationBasic",
19+
"sources": [
20+
{
21+
"source": "./",
22+
"target": "./",
23+
"exclude": [
24+
".template.config/**"
25+
]
26+
}
27+
],
28+
"symbols": {
29+
"TargetFrameworkOverride": {
30+
"type": "parameter",
31+
"description": "Overrides the target framework",
32+
"replaces": "TargetFrameworkOverride",
33+
"datatype": "string",
34+
"defaultValue": ""
35+
},
36+
"Framework": {
37+
"type": "parameter",
38+
"description": "The target framework for the project.",
39+
"datatype": "choice",
40+
"choices": [
41+
{
42+
"choice": "netcoreapp2.0",
43+
"description": "Target netcoreapp2.0"
44+
}
45+
],
46+
"replaces": "netcoreapp2.0",
47+
"defaultValue": "netcoreapp2.0"
48+
},
49+
"HostIdentifier": {
50+
"type": "bind",
51+
"binding": "HostIdentifier"
52+
},
53+
"skipRestore": {
54+
"type": "parameter",
55+
"datatype": "bool",
56+
"description": "If specified, skips the automatic restore of the project on create.",
57+
"defaultValue": "false"
58+
}
59+
},
60+
"tags": {
61+
"language": "C#",
62+
"type": "project"
63+
},
64+
"postActions": [
65+
{
66+
"condition": "(!skipRestore)",
67+
"description": "Restore NuGet packages required by this project.",
68+
"manualInstructions": [
69+
{
70+
"text": "Run 'dotnet restore'"
71+
}
72+
],
73+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
74+
"continueOnError": true
75+
},
76+
{
77+
"condition": "(HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\")",
78+
"actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C",
79+
"description": "\n\n-------------------------------------------------------------------\nIMPORTANT: Before running this project on the command line,\n you must restore NPM packages by running \"npm install\"\n-------------------------------------------------------------------\n",
80+
"manualInstructions": [
81+
{
82+
"text": "Run \"npm install\""
83+
}
84+
]
85+
}
86+
]
87+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vs-2017.3.host",
3+
"name": {
4+
"text": "Angular",
5+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
6+
"id": "1100"
7+
},
8+
"description": {
9+
"text": "A project template for creating an ASP.NET Core application with Angular",
10+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
11+
"id": "1101"
12+
},
13+
"order": 301,
14+
"icon": "icon.png",
15+
"learnMoreLink": "https://github.com/aspnet/JavaScriptServices",
16+
"uiFilters": [
17+
"oneaspnet"
18+
],
19+
"minFullFrameworkVersion": "4.6.1"
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
}
17+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"author": "Microsoft",
3+
"classifications": [
4+
"Web",
5+
"MVC",
6+
"SPA"
7+
],
8+
"groupIdentity": "Microsoft.AspNetCore.SpaTemplates.Aurelia",
9+
"identity": "Microsoft.AspNetCore.SpaTemplates.Aurelia.CSharp",
10+
"name": "ASP.NET Core with Aurelia",
11+
"preferNameDirectory": true,
12+
"primaryOutputs": [
13+
{
14+
"path": "WebApplicationBasic.csproj"
15+
}
16+
],
17+
"shortName": "aurelia",
18+
"sourceName": "WebApplicationBasic",
19+
"sources": [
20+
{
21+
"source": "./",
22+
"target": "./",
23+
"exclude": [
24+
".template.config/**"
25+
]
26+
}
27+
],
28+
"symbols": {
29+
"TargetFrameworkOverride": {
30+
"type": "parameter",
31+
"description": "Overrides the target framework",
32+
"replaces": "TargetFrameworkOverride",
33+
"datatype": "string",
34+
"defaultValue": ""
35+
},
36+
"Framework": {
37+
"type": "parameter",
38+
"description": "The target framework for the project.",
39+
"datatype": "choice",
40+
"choices": [
41+
{
42+
"choice": "netcoreapp2.0",
43+
"description": "Target netcoreapp2.0"
44+
}
45+
],
46+
"replaces": "netcoreapp2.0",
47+
"defaultValue": "netcoreapp2.0"
48+
},
49+
"HostIdentifier": {
50+
"type": "bind",
51+
"binding": "HostIdentifier"
52+
},
53+
"skipRestore": {
54+
"type": "parameter",
55+
"datatype": "bool",
56+
"description": "If specified, skips the automatic restore of the project on create.",
57+
"defaultValue": "false"
58+
}
59+
},
60+
"tags": {
61+
"language": "C#",
62+
"type": "project"
63+
},
64+
"postActions": [
65+
{
66+
"condition": "(!skipRestore)",
67+
"description": "Restore NuGet packages required by this project.",
68+
"manualInstructions": [
69+
{
70+
"text": "Run 'dotnet restore'"
71+
}
72+
],
73+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
74+
"continueOnError": true
75+
},
76+
{
77+
"condition": "(HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\")",
78+
"actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C",
79+
"description": "\n\n-------------------------------------------------------------------\nIMPORTANT: Before running this project on the command line,\n you must restore NPM packages by running \"npm install\"\n-------------------------------------------------------------------\n",
80+
"manualInstructions": [
81+
{
82+
"text": "Run \"npm install\""
83+
}
84+
]
85+
}
86+
]
87+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vs-2017.3.host",
3+
"name": {
4+
"text": "Aurelia",
5+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
6+
"id": "1200"
7+
},
8+
"description": {
9+
"text": "A project template for creating an ASP.NET Core application with Aurelia",
10+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
11+
"id": "1201"
12+
},
13+
"order": 301,
14+
"icon": "icon.png",
15+
"learnMoreLink": "https://github.com/aspnet/JavaScriptServices",
16+
"uiFilters": [
17+
"oneaspnet"
18+
],
19+
"minFullFrameworkVersion": "4.6.1"
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
}
17+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"author": "Microsoft",
3+
"classifications": [
4+
"Web",
5+
"MVC",
6+
"SPA"
7+
],
8+
"groupIdentity": "Microsoft.AspNetCore.SpaTemplates.Knockout",
9+
"identity": "Microsoft.AspNetCore.SpaTemplates.Knockout.CSharp",
10+
"name": "ASP.NET Core with Knockout.js",
11+
"preferNameDirectory": true,
12+
"primaryOutputs": [
13+
{
14+
"path": "WebApplicationBasic.csproj"
15+
}
16+
],
17+
"shortName": "knockout",
18+
"sourceName": "WebApplicationBasic",
19+
"sources": [
20+
{
21+
"source": "./",
22+
"target": "./",
23+
"exclude": [
24+
".template.config/**"
25+
]
26+
}
27+
],
28+
"symbols": {
29+
"TargetFrameworkOverride": {
30+
"type": "parameter",
31+
"description": "Overrides the target framework",
32+
"replaces": "TargetFrameworkOverride",
33+
"datatype": "string",
34+
"defaultValue": ""
35+
},
36+
"Framework": {
37+
"type": "parameter",
38+
"description": "The target framework for the project.",
39+
"datatype": "choice",
40+
"choices": [
41+
{
42+
"choice": "netcoreapp2.0",
43+
"description": "Target netcoreapp2.0"
44+
}
45+
],
46+
"replaces": "netcoreapp2.0",
47+
"defaultValue": "netcoreapp2.0"
48+
},
49+
"HostIdentifier": {
50+
"type": "bind",
51+
"binding": "HostIdentifier"
52+
},
53+
"skipRestore": {
54+
"type": "parameter",
55+
"datatype": "bool",
56+
"description": "If specified, skips the automatic restore of the project on create.",
57+
"defaultValue": "false"
58+
}
59+
},
60+
"tags": {
61+
"language": "C#",
62+
"type": "project"
63+
},
64+
"postActions": [
65+
{
66+
"condition": "(!skipRestore)",
67+
"description": "Restore NuGet packages required by this project.",
68+
"manualInstructions": [
69+
{
70+
"text": "Run 'dotnet restore'"
71+
}
72+
],
73+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
74+
"continueOnError": true
75+
},
76+
{
77+
"condition": "(HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\")",
78+
"actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C",
79+
"description": "\n\n-------------------------------------------------------------------\nIMPORTANT: Before running this project on the command line,\n you must restore NPM packages by running \"npm install\"\n-------------------------------------------------------------------\n",
80+
"manualInstructions": [
81+
{
82+
"text": "Run \"npm install\""
83+
}
84+
]
85+
}
86+
]
87+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vs-2017.3.host",
3+
"name": {
4+
"text": "Knockout.js",
5+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
6+
"id": "1300"
7+
},
8+
"description": {
9+
"text": "A project template for creating an ASP.NET Core application with Knockout.js",
10+
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
11+
"id": "1301"
12+
},
13+
"order": 301,
14+
"icon": "icon.png",
15+
"learnMoreLink": "https://github.com/aspnet/JavaScriptServices",
16+
"uiFilters": [
17+
"oneaspnet"
18+
],
19+
"minFullFrameworkVersion": "4.6.1"
20+
}

0 commit comments

Comments
 (0)