Skip to content

Commit 9202325

Browse files
committed
update
1 parent 272d0b5 commit 9202325

File tree

7 files changed

+103
-13
lines changed

7 files changed

+103
-13
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Skyline Communications
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# DataMiner Visual Studio Templates
2+
3+
This repository contains DataMiner templates that can be used with Visual Studio and the dotnet CLI.
4+
5+
## Collaboration project
6+
This is the collaboration project being used to develop this: [NetInsight - Partner Management](https://collaboration.dataminer.services/project/14770/list)
7+
More details about the test setup can be found at TBD (link to internal-docs).
8+
9+
10+
## Solution Templates
11+
12+
### SRM Function Solution
13+
14+
## How to install
15+
16+
1. Install the latest [.NET](https://dot.net)
17+
2. Run 'dotnet new install Skyline.DataMiner.VisualStudioTemplates' to install the templates.
18+
19+
## How to use
20+
21+
### Using Visual Studio
22+
23+
1. Select DataMiner from the project type drop down.
24+
2. Select the template you want to install and follow the instructions.
25+
26+
### Using the CLI
27+
28+
1. Choose a project template i.e. `dataminer-srmfunction-solution`.
29+
2. Run `dotnet new dataminer-srmfunction-solution --help` to see the available options.
30+
3. Run `dotnet new dataminer-srmfunction-solution ' with the required options along with any other options to create a solution from the template.
31+
32+
## License
33+
34+
This project is licensed under the [MIT License](https://github.com/SkylineCommunications/Skyline.DataMiner.VisualStudioTemplates/blob/main/LICENSE) – see the file for details.

images/VisualStudio-NewProject.png

40.9 KB
Loading

working/templates/srmfunction/.template_config/dotnetcli.host.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"symbolInfo": {
44
"ScriptName": {
55
"longName": "script-name",
6-
"shortName": "script"
6+
"shortName": "name"
7+
},
8+
"Author": {
9+
"longName": "author",
10+
"shortName": "author"
711
},
812
}
913
}

working/templates/srmfunction/.template_config/ide.host.json

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"text": "The name of the script."
1111
},
1212
"isVisible": true
13+
},
14+
{
15+
"id": "Author",
16+
"name":
17+
{
18+
"text": "The author."
19+
},
20+
"isVisible": true
1321
}
1422
]
1523
}

working/templates/srmfunction/.template_config/template.json

+33-10
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,51 @@
88
},
99
"identity": "Skyline.DataMiner.SrmFunctionSolution",
1010
"name": "DataMiner SRM Function Solution",
11-
"shortName": "dataminer-srmfuction-solution",
11+
"shortName": "dataminer-srmfunction-solution",
1212
"sourceName": "DataMinerSrmFunctionSolutionTemplate",
1313
"symbols": {
1414
"ScriptName": {
1515
"type": "parameter",
1616
"datatype": "string",
1717
"defaultValue": "ProfileLoadScript",
1818
"replaces": "$SCRIPTNAME$",
19-
"FileRename": "ProfileLoadScript",
19+
"FileRename": "ProfileLoadScript",
2020
"description": "The name of the profile load script."
21-
}
21+
},
22+
"Author": {
23+
"type": "parameter",
24+
"datatype": "string",
25+
"defaultValue": "SKYLINE2\\",
26+
"replaces": "$AUTHOR$",
27+
"description": "The author."
28+
},
29+
"CopyrightYear": {
30+
"type": "generated",
31+
"generator": "now",
32+
"replaces": "$COPYRIGHTYEAR$",
33+
"parameters": {
34+
"format": "yyyy"
35+
}
36+
},
37+
"InitialVersionDate": {
38+
"type": "generated",
39+
"generator": "now",
40+
"replaces": "$INITIALVERSIONDATE$",
41+
"parameters": {
42+
"format": "yyyy-MM-dd"
43+
}
44+
}
2245
},
2346
"guids": [
2447
"E36AC6BE-8DD5-4353-BB79-822B92FAF41A",
2548
"BC89B906-BFA7-4178-AB35-1B3211D7E19E",
26-
"BC89B906-BFA7-4178-AB35-1B3211D7E19F",
27-
"5760BE30-3FBD-4869-B73C-F8E6854AA843",
28-
"62C82A52-AAA0-46CC-B3AE-5DF52B84A9C4",
29-
"D9DF9A8D-CC3E-4C79-BCD6-AFDA931CEC22",
30-
"510B47A0-A1C9-4AD1-A708-CF5E9EBE9571",
31-
"8A001798-583D-4A9E-8532-3F6055D10078",
32-
"C99E3ABD-DE32-45FA-9FB7-8C9B659E11C1"
49+
"BC89B906-BFA7-4178-AB35-1B3211D7E19F",
50+
"5760BE30-3FBD-4869-B73C-F8E6854AA843",
51+
"62C82A52-AAA0-46CC-B3AE-5DF52B84A9C4",
52+
"D9DF9A8D-CC3E-4C79-BCD6-AFDA931CEC22",
53+
"510B47A0-A1C9-4AD1-A708-CF5E9EBE9571",
54+
"8A001798-583D-4A9E-8532-3F6055D10078",
55+
"C99E3ABD-DE32-45FA-9FB7-8C9B659E11C1"
3356
],
3457
"sources": [
3558
{

working/templates/srmfunction/ProfileLoadScript_1/ProfileLoadScript_1.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
****************************************************************************
3-
* Copyright (c) 2023, Skyline Communications NV All Rights Reserved. *
3+
* Copyright (c) $COPYRIGHTYEAR$, Skyline Communications NV All Rights Reserved. *
44
****************************************************************************
55
66
By using this script, you expressly agree with the usage terms and
@@ -45,7 +45,7 @@ Ambachtenstraat 33
4545
4646
DATE VERSION AUTHOR COMMENTS
4747
48-
dd/mm/2023 1.0.0.1 XXX, Skyline Initial version
48+
$INITIALVERSIONDATE$ 1.0.0.1 XXX, Skyline Initial version
4949
****************************************************************************
5050
*/
5151

0 commit comments

Comments
 (0)