1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [
"Web",
"Razor",
"Library"
],
"name": "Razor Class Library",
"generatorVersions": "[1.0.0.0-*)",
"description": "A project for creating a Razor class library that targets .NET Standard",
"groupIdentity": "Microsoft.Web.Razor",
"precedence": "7000",
"identity": "Microsoft.Web.Razor.Library.CSharp.5.0",
"shortName": "razorclasslib",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "Company.RazorClassLibrary1",
"preferNameDirectory": true,
"sources": [
{
"modifiers": [
{
"condition": "(!SupportPagesAndViews)",
"exclude": [
"Areas/**"
]
},
{
"condition": "(SupportPagesAndViews)",
"exclude": [
"_Imports.razor",
"Component1.razor",
"ExampleJsInterop.cs",
"wwwroot/**"
]
}
]
}
],
"symbols": {
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp5.0",
"description": "Target netcoreapp5.0"
}
],
"defaultValue": "netcoreapp5.0"
},
"HostIdentifier": {
"type": "bind",
"binding": "HostIdentifier"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
},
"SupportPagesAndViews": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"description": "Whether to support adding traditional Razor pages and Views in addition to components to this library."
}
},
"primaryOutputs": [
{
"path": "Company.RazorClassLibrary1.csproj"
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "Areas/MyFeature/Pages/Page1.cshtml"
}
],
"defaultName": "RazorClassLibrary",
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restore NuGet packages required by this project.",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
},
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"description": "Opens Areas/MyFeature/Pages/Page1.cshtml in the editor",
"manualInstructions": [],
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
"args": {
"files": "1"
},
"continueOnError": true
}
]
}
|