-
Notifications
You must be signed in to change notification settings - Fork 372
/
template.json
125 lines (125 loc) · 3.42 KB
/
template.json
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": ["Common", "Library"],
"name": "Class library",
"generatorVersions": "[1.0.0.0-*)",
"description": "A project for creating a class library that targets .NET Standard or .NET Core",
"groupIdentity": "Microsoft.Common.Library",
"precedence": "100",
"identity": "Microsoft.Common.Library.CSharp",
"shortName": "classlib",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "Company.ClassLibrary1",
"preferNameDirectory": true,
"baselines": {
"app": {
"description": "Target netcoreapp",
"defaultOverrides": {
"Framework": "netcoreapp1.1"
}
},
"standard": {
"description": "Target netstandard",
"defaultOverrides": {
"Framework": "netstandard1.4"
}
}
},
"symbols": {
"TargetFrameworkOverride": {
"type": "parameter",
"description": "Overrides the target framework",
"replaces": "TargetFrameworkOverride",
"datatype": "string",
"defaultValue": ""
},
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"replaces": "netstandard1.4",
"datatype": "choice",
"choices": [
{
"choice": "netcoreapp1.0",
"description": "Target netcoreapp1.0"
},
{
"choice": "netcoreapp1.1",
"description": "Target netcoreapp1.1"
},
{
"choice": "netstandard1.0",
"description": "Target netstandard1.0"
},
{
"choice": "netstandard1.1",
"description": "Target netstandard1.1"
},
{
"choice": "netstandard1.2",
"description": "Target netstandard1.2"
},
{
"choice": "netstandard1.3",
"description": "Target netstandard1.3"
},
{
"choice": "netstandard1.4",
"description": "Target netstandard1.4"
},
{
"choice": "netstandard1.5",
"description": "Target netstandard1.5"
},
{
"choice": "netstandard1.6",
"description": "Target netstandard1.6"
}
],
"defaultValue": "netstandard1.4"
},
"HostIdentifier": {
"type": "bind",
"binding": "HostIdentifier"
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
}
},
"primaryOutputs": [
{ "path": "Company.ClassLibrary1.csproj" },
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"path": "Class1.cs"
}
],
"defaultName": "ClassLibrary1",
"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 Class1.cs in the editor",
"manualInstructions": [ ],
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
"args": {
"files": "1"
},
"continueOnError": true
}
]
}