Skip to content

Commit 3b0fd1c

Browse files
Merge pull request #12 from SkylineCommunications/supportDxM
Support DxM solutions
2 parents 671f228 + 609e434 commit 3b0fd1c

29 files changed

+893
-1
lines changed

working/templatepack.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>template</PackageType>
5-
<PackageVersion>1.0.10</PackageVersion>
5+
<PackageVersion>1.0.11</PackageVersion>
66
<PackageId>Skyline.DataMiner.VisualStudioTemplates.Internal</PackageId>
77
<Title>DataMiner DotNet Templates</Title>
88
<Authors>SkylineCommunications</Authors>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"DxmModuleName": {
5+
"longName": "dxm-name",
6+
"shortName": "name"
7+
},
8+
"Description": {
9+
"longName": "description",
10+
"shortName": "desc"
11+
},
12+
"LicenseType": {
13+
"longName": "license-type",
14+
"shortName": "lic"
15+
},
16+
"GitRepoUrl": {
17+
"longName": "repo-url",
18+
"shortName": "url"
19+
}
20+
}
21+
}
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vs-2017.3.host",
3+
"order": 0,
4+
"icon": "icon.png",
5+
"symbolInfo": [
6+
{
7+
"id": "DxmModuleName",
8+
"name":
9+
{
10+
"text": "DxM Name"
11+
},
12+
"isVisible": true
13+
},
14+
{
15+
"id": "Description",
16+
"name":
17+
{
18+
"text": "DxM Description"
19+
},
20+
"isVisible": true
21+
},
22+
{
23+
"id": "LicenseType",
24+
"name":
25+
{
26+
"text": "License"
27+
},
28+
"isVisible": true
29+
},
30+
{
31+
"id": "GitRepoUrl",
32+
"name":
33+
{
34+
"text": "Repository URL"
35+
},
36+
"isVisible": true
37+
}
38+
]
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,272 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Skyline Communications",
4+
"classifications": [ "DataMiner" ],
5+
"tags": {
6+
"language": "C#",
7+
"type": "solution",
8+
"editorTreatAs":"solution"
9+
},
10+
"identity": "Skyline.DataMiner.DataMinerExtensionModule",
11+
"name": "DataMiner Extension Module Solution",
12+
"shortName": "dataminer-dxm-solution",
13+
"sourceName": "DataMinerExtensionModuleTemplate",
14+
"symbols": {
15+
"FullDxmNameStart": {
16+
"type": "parameter",
17+
"dataType": "string",
18+
"defaultValue": "DataMiner"
19+
},
20+
"ProjectNameStart": {
21+
"type": "parameter",
22+
"dataType": "string",
23+
"defaultValue": "Skyline.DataMiner.Dxm"
24+
},
25+
"NuGetNameEnd": {
26+
"type": "parameter",
27+
"dataType": "string",
28+
"defaultValue": "Api"
29+
},
30+
"ServiceNameEnd": {
31+
"type": "parameter",
32+
"dataType": "string",
33+
"defaultValue": "Service"
34+
},
35+
"InstallerNameEnd": {
36+
"type": "parameter",
37+
"dataType": "string",
38+
"defaultValue": "Installer"
39+
},
40+
"DxmModuleName": {
41+
"type": "parameter",
42+
"datatype": "string",
43+
"defaultValue": "PascalCaseModuleNameShouldNotIncludeSL",
44+
"replaces": "$DxmModuleName$",
45+
"FileRename": "DxmModuleName",
46+
"description": "The name of the DxM in PascalCase and not include \"SL\" in the name. DataMiner will automatically be prefixed.",
47+
"isRequired": true
48+
},
49+
"Description": {
50+
"type": "parameter",
51+
"datatype": "string",
52+
"defaultValue": "",
53+
"replaces": "$PackageDescription$",
54+
"description": "A short description about this DxM.",
55+
"isRequired": true
56+
},
57+
"LicenseType": {
58+
"type": "parameter",
59+
"datatype": "choice",
60+
"defaultValue": "Skyline",
61+
"description": "The type of license applicable for this DxM.",
62+
"isRequired": true,
63+
"choices": [
64+
{
65+
"choice": "Skyline",
66+
"description": "Skyline license"
67+
},
68+
{
69+
"choice": "MIT",
70+
"description": "MIT license"
71+
}
72+
]
73+
},
74+
"GitRepoUrl": {
75+
"type": "parameter",
76+
"datatype": "string",
77+
"defaultValue": "",
78+
"replaces": "$GitRepoUrl$",
79+
"description": "The URL of the Git repository. Leave empty if not hosted."
80+
},
81+
"DxmId":{
82+
"type": "generated",
83+
"generator": "guid",
84+
"replaces": "$DxmId$",
85+
"parameters": {
86+
"defaultFormat":"D"
87+
}
88+
},
89+
"FullDxmName": {
90+
"type": "generated",
91+
"generator": "join",
92+
"replaces": "$FullDxmName$",
93+
"parameters":
94+
{"symbols": [
95+
{
96+
"type": "ref",
97+
"value": "FullDxmNameStart"
98+
},
99+
{
100+
"type": "ref",
101+
"value": "DxmModuleName"
102+
}
103+
],
104+
"separator": " "
105+
}
106+
},
107+
"NuGetName": {
108+
"type": "generated",
109+
"generator": "join",
110+
"replaces": "$NuGetName$",
111+
"FileRename": "NuGetProject",
112+
"parameters":
113+
{"symbols": [
114+
{
115+
"type": "ref",
116+
"value": "DxmModuleName"
117+
},
118+
{
119+
"type": "ref",
120+
"value": "NuGetNameEnd"
121+
}
122+
],
123+
"separator": "."
124+
}
125+
},
126+
"ServiceName": {
127+
"type": "generated",
128+
"generator": "join",
129+
"replaces": "$ServiceName$",
130+
"FileRename": "ServiceProject",
131+
"parameters":
132+
{"symbols": [
133+
{
134+
"type": "ref",
135+
"value": "DxmModuleName"
136+
},
137+
{
138+
"type": "ref",
139+
"value": "ServiceNameEnd"
140+
}
141+
],
142+
"separator": "."
143+
}
144+
},
145+
"InstallerName": {
146+
"type": "generated",
147+
"generator": "join",
148+
"replaces": "$InstallerName$",
149+
"FileRename": "InstallerProject",
150+
"parameters":
151+
{"symbols": [
152+
{
153+
"type": "ref",
154+
"value": "DxmModuleName"
155+
},
156+
{
157+
"type": "ref",
158+
"value": "InstallerNameEnd"
159+
}
160+
],
161+
"separator": "."
162+
}
163+
},
164+
"NuGetNameFull": {
165+
"type": "generated",
166+
"generator": "join",
167+
"replaces": "$NuGetNameFull$",
168+
"FileRename": "NuGetProjectFull",
169+
"parameters":
170+
{"symbols": [
171+
{
172+
"type": "ref",
173+
"value": "ProjectNameStart"
174+
},
175+
{
176+
"type": "ref",
177+
"value": "DxmModuleName"
178+
},
179+
{
180+
"type": "ref",
181+
"value": "NuGetNameEnd"
182+
}
183+
],
184+
"separator": "."
185+
}
186+
},
187+
"ServiceNameFull": {
188+
"type": "generated",
189+
"generator": "join",
190+
"replaces": "$ServiceNameFull$",
191+
"FileRename": "ServiceProjectFull",
192+
"parameters":
193+
{"symbols": [
194+
{
195+
"type": "ref",
196+
"value": "ProjectNameStart"
197+
},
198+
{
199+
"type": "ref",
200+
"value": "DxmModuleName"
201+
},
202+
{
203+
"type": "ref",
204+
"value": "ServiceNameEnd"
205+
}
206+
],
207+
"separator": "."
208+
}
209+
},
210+
"InstallerNameFull": {
211+
"type": "generated",
212+
"generator": "join",
213+
"replaces": "$InstallerNameFull$",
214+
"FileRename": "InstallerProjectFull",
215+
"parameters":
216+
{"symbols": [
217+
{
218+
"type": "ref",
219+
"value": "ProjectNameStart"
220+
},
221+
{
222+
"type": "ref",
223+
"value": "DxmModuleName"
224+
},
225+
{
226+
"type": "ref",
227+
"value": "InstallerNameEnd"
228+
}
229+
],
230+
"separator": "."
231+
}
232+
},
233+
"isSkylineLicense": {
234+
"type": "computed",
235+
"value": "LicenseType == \"Skyline\""
236+
},
237+
"isMitLicense": {
238+
"type": "computed",
239+
"value": "LicenseType == \"MIT\""
240+
},
241+
"hasGitRepoUrl": {
242+
"type": "computed",
243+
"value": "GitRepoUrl != \"\""
244+
},
245+
"CopyrightYear": {
246+
"type": "generated",
247+
"generator": "now",
248+
"replaces": "$COPYRIGHTYEAR$",
249+
"parameters": {
250+
"format": "yyyy"
251+
}
252+
}
253+
},
254+
"guids": [
255+
"43695E16-1DC5-4A55-A915-04E1F7F8DAB6",
256+
"42201877-4DAB-4C36-B4BA-A944CA495A62",
257+
"7CEC5EE1-F450-4E51-8253-7EB37F08CC8E",
258+
"35CB26C6-7C74-4B45-80AB-C115A40C7B93",
259+
"A5C42DF2-BA32-4745-BE0D-6B58D55BE6C3",
260+
"942D1BB9-3A1A-4767-B53B-4076E4D0DB5B",
261+
"f28ae971-b942-44e3-8b30-27faca79f8cb"
262+
],
263+
"sources": [
264+
{
265+
"modifiers": [
266+
{
267+
"exclude": [ "./[Content_Types].xml", "src/.vs/**", ".template_config/**", "[Content_Types].xml", "_rels/**", "*.nuspec", "*.nupkg", "package/**" ]
268+
}
269+
]
270+
}
271+
]
272+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
trigger:
2+
branches:
3+
include:
4+
- '*'
5+
tags:
6+
include:
7+
- '*'
8+
resources:
9+
repositories:
10+
- repository: templates
11+
type: git
12+
name: 'DataMiner Extension Modules (DXM)/Reusable Pipelines'
13+
14+
variables:
15+
- template: default-variables.yml@templates
16+
17+
stages:
18+
- template: default.yml@templates

0 commit comments

Comments
 (0)