Skip to content

Commit 969b8b8

Browse files
danroth27SteveSandersonMS
authored andcommitted
Make templates show up in the One ASP.NET dialog (#208)
* Add templates parameter * Fix primary outputs * Reorder primary outputs * Update hosted template name * Fix whitespace
1 parent 493992a commit 969b8b8

File tree

5 files changed

+58
-1
lines changed

5 files changed

+58
-1
lines changed

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/dotnetcli.host.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"skipRestore": {
55
"longName": "no-restore",
66
"shortName": ""
7+
},
8+
"Framework": {
9+
"longName": "framework"
710
}
811
}
912
}

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/template.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,32 @@
1717
"preferNameDirectory": true,
1818
"primaryOutputs": [
1919
{
20+
"condition": "(HostIdentifier == \"dotnetcli\" || HostIdentifier == \"dotnetcli-preview\")",
2021
"path": "BlazorHosted.CSharp.sln"
22+
},
23+
{
24+
"condition": "(OS == \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
25+
"path": "BlazorHosted.CSharp.Server\\BlazorHosted.CSharp.Server.csproj"
26+
},
27+
{
28+
"condition": "(OS != \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
29+
"path": "BlazorHosted.CSharp.Server/BlazorHosted.CSharp.Server.csproj"
30+
},
31+
{
32+
"condition": "(OS == \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
33+
"path": "BlazorHosted.CSharp.Client\\BlazorHosted.CSharp.Client.csproj"
34+
},
35+
{
36+
"condition": "(OS != \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
37+
"path": "BlazorHosted.CSharp.Client/BlazorHosted.CSharp.Client.csproj"
38+
},
39+
{
40+
"condition": "(OS == \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
41+
"path": "BlazorHosted.CSharp.Shared\\BlazorHosted.CSharp.Shared.csproj"
42+
},
43+
{
44+
"condition": "(OS != \"Windows_NT\" && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
45+
"path": "BlazorHosted.CSharp.Shared/BlazorHosted.CSharp.Shared.csproj"
2146
}
2247
],
2348
"shortName": "blazorhosted",
@@ -32,6 +57,19 @@
3257
}
3358
],
3459
"symbols": {
60+
"Framework": {
61+
"type": "parameter",
62+
"description": "The target framework for the project.",
63+
"datatype": "choice",
64+
"choices": [
65+
{
66+
"choice": "netcoreapp2.0",
67+
"description": "Target netcoreapp2.0"
68+
}
69+
],
70+
"replaces": "netcoreapp2.0",
71+
"defaultValue": "netcoreapp2.0"
72+
},
3573
"HostIdentifier": {
3674
"type": "bind",
3775
"binding": "HostIdentifier"

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/.template.config/vs-2017.3.host.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json.schemastore.org/vs-2017.3.host",
33
"name": {
4-
"text": "Blazor, hosted in a ASP.NET Web Application",
4+
"text": "Blazor (ASP.NET Core hosted)",
55
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
66
"id": "1050"
77
},

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/.template.config/dotnetcli.host.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"skipRestore": {
55
"longName": "no-restore",
66
"shortName": ""
7+
},
8+
"Framework": {
9+
"longName": "framework"
710
}
811
}
912
}

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/.template.config/template.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@
2626
}
2727
],
2828
"symbols": {
29+
"Framework": {
30+
"type": "parameter",
31+
"description": "The target framework for the project.",
32+
"datatype": "choice",
33+
"choices": [
34+
{
35+
"choice": "netcoreapp2.0",
36+
"description": "Target netcoreapp2.0"
37+
}
38+
],
39+
"replaces": "netcoreapp2.0",
40+
"defaultValue": "netcoreapp2.0"
41+
},
2942
"HostIdentifier": {
3043
"type": "bind",
3144
"binding": "HostIdentifier"

0 commit comments

Comments
 (0)