Skip to content

Commit 0589502

Browse files
Merge pull request #34 from Chris-Wolfgang/develop
Develop
2 parents 96dc970 + 821e600 commit 0589502

28 files changed

+422
-87
lines changed

ConsoleAppTemplate/ConsoleAppTemplate.sln

Lines changed: 0 additions & 24 deletions
This file was deleted.

ConsoleAppTemplate/ConsoleAppTemplate/.template.config/template.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/ConsoleAppTemplate.sln

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.13.35931.197
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleAppTemplate", "ConsoleAppTemplate\Content\ConsoleAppTemplate.csproj", "{E6EC11C2-57E6-C27B-6C78-C6721B0B44F6}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubCommandTemplate", "SubCommandTemplate\SubCommandTemplate.csproj", "{3B6963B1-D91E-B3D8-2380-9782F9D0225C}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{E6EC11C2-57E6-C27B-6C78-C6721B0B44F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{E6EC11C2-57E6-C27B-6C78-C6721B0B44F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{E6EC11C2-57E6-C27B-6C78-C6721B0B44F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{E6EC11C2-57E6-C27B-6C78-C6721B0B44F6}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{3B6963B1-D91E-B3D8-2380-9782F9D0225C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{3B6963B1-D91E-B3D8-2380-9782F9D0225C}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{3B6963B1-D91E-B3D8-2380-9782F9D0225C}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{3B6963B1-D91E-B3D8-2380-9782F9D0225C}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {1BCE0F04-514F-4A72-9B2A-DF75D71D3C54}
29+
EndGlobalSection
30+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"symbolInfo": {
3+
4+
5+
}
6+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vs-2017.3.host",
3+
"icon": "icon.png",
4+
"symbolInfo": [
5+
{
6+
"id": "version",
7+
"name": {
8+
"text": "Version number"
9+
},
10+
"isVisible": true
11+
},
12+
{
13+
"id": "author",
14+
"name": {
15+
"text": "Author/Company"
16+
},
17+
"isVisible": true
18+
},
19+
{
20+
"id": "Description",
21+
"name": {
22+
"text": "Description"
23+
},
24+
"isVisible": true
25+
},
26+
{
27+
"id": "response-file",
28+
"name": {
29+
"text": "Response file support"
30+
},
31+
"isVisible": true
32+
}
33+
]
34+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Chris Wolfgang",
4+
"classifications": [ "Console" ],
5+
"identity": "Wolfgang.Preconfigured.Console",
6+
"name": "Wolfgang Preconfigured Console App",
7+
"shortName": "cwconsole",
8+
"sourceName": "ConsoleAppTemplate",
9+
"description": "A console application preconfigured with additional package including McMaster's CommandLineUtils, Serilog and others'",
10+
"defaultName": "ConsoleApp",
11+
12+
"baselines": {
13+
"default": {
14+
"defaultOverrides": {
15+
"framework": "net8.0",
16+
"version": "0.1.0"
17+
}
18+
}
19+
},
20+
21+
"macros": [
22+
{
23+
"type": "evaluate",
24+
"name": "currentYear",
25+
"value": "now:yyyy"
26+
}
27+
],
28+
29+
30+
"tags": {
31+
"language": "C#",
32+
"type": "project"
33+
},
34+
35+
"symbols": {
36+
"framework": {
37+
"type": "parameter",
38+
"description": "The target framework for the project.",
39+
"datatype": "choice",
40+
"choices": [
41+
{
42+
"choice": "net6.0",
43+
"description": ".Net 6.0"
44+
},
45+
{
46+
"choice": "net7.0",
47+
"description": ".Net 7.0"
48+
},
49+
{
50+
"choice": "net8.0",
51+
"description": ".Net 8.0"
52+
},
53+
{
54+
"choice": "net9.0",
55+
"description": ".Net 9.0"
56+
}
57+
],
58+
"replaces": "net8.0",
59+
"defaultValue": "net8.0"
60+
},
61+
62+
"version": {
63+
"type": "parameter",
64+
"description": "Initial version number for the project.",
65+
"datatype": "text",
66+
"replaces": "0.1.0",
67+
"defaultValue": "0.1.0-alpha"
68+
},
69+
70+
71+
"author": {
72+
"type": "parameter",
73+
"description": "The name of the company or person that authored this project. This name will appear in the <Author> tag in the csproj and in the copyright",
74+
"datatype": "text",
75+
"replaces": "{author}",
76+
"defaultValue": "(your company)"
77+
},
78+
79+
"description": {
80+
"type": "parameter",
81+
"description": "A description of this application. This name will appear in the <Description> tag in the csproj and in the copyright",
82+
"datatype": "text",
83+
"replaces": "{description}",
84+
"defaultValue": "(Console Application)"
85+
},
86+
87+
"response-file": {
88+
"type": "parameter",
89+
"description": "Response file support. Command line arguments can be added to a response file and the response can be passed in as though each argument was manually typed at the commandline",
90+
"datatype": "choice",
91+
"choices": [
92+
{
93+
"choice": "Disabled",
94+
"description": "Disabled",
95+
"displayName": "Disabled - No response file support.",
96+
"documentation": ""
97+
},
98+
{
99+
"choice": "ParseArgsAsLineSeparated",
100+
"description": "Line separated",
101+
"displayName": "Line separated - Each argument is on a new line.",
102+
"documentation": ""
103+
},
104+
{
105+
"choice": "ParseArgsAsSpaceSeparated",
106+
"description": "Space separated",
107+
"displayName": "Space separated - All arguments are on a single line in separated by spaces.",
108+
"documentation": ""
109+
}
110+
],
111+
"replaces": "ParseArgsAsSpaceSeparated",
112+
"defaultValue": "ParseArgsAsLineSeparated"
113+
},
114+
115+
"currentYear": {
116+
"type": "generated",
117+
"generator": "now",
118+
"parameters": {
119+
"format": "yyyy"
120+
},
121+
"replaces": "{copyright year}"
122+
}
123+
},
124+
125+
"primaryOutputs": [
126+
{
127+
"path": "Instructions.md"
128+
}
129+
],
130+
131+
"postActions": [
132+
{
133+
"description": "Open Instructions.md",
134+
"manualInstructions": [],
135+
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
136+
"args": {
137+
"files": "0"
138+
},
139+
"continueOnError": true
140+
}
141+
]
142+
}

ConsoleAppTemplate/ConsoleAppTemplate/AppSettings.Development.json renamed to src/ConsoleAppTemplate/Content/AppSettings.Development.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@
3030
"Name": "Console",
3131
"Args": {
3232
// Sets the format of log entries
33-
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}",
33+
"outputTemplate": "{Level:u3} {Message:lj}{NewLine}{Exception}",
3434

3535
// Sets the minimum level for the console sink. Possible values are: Verbose, Debug, Information, Warning, Error, Fatal
36-
"restrictedToMinimumLevel": "Information"
36+
"restrictedToMinimumLevel": "Information"
3737
}
3838
},
3939
{
4040
// File sink configuration
4141
"Name": "File",
4242
"Args": {
43-
// TODO Specify the location for the logs files
44-
"path": "logs/log-.txt",
43+
// Specify the location for the logs files
44+
"path": "C:\\logs\\ConsoleAppTemplate\\ConsoleAppTemplate-.log",
4545

46-
// When true will create a new file is the current file size exceeds the fileSizeLimitBytes
46+
// When true will create a new file if the current file size exceeds the fileSizeLimitBytes
4747
"rollOnFileSizeLimit": true,
4848

4949
// Creates a new file everyday
5050
"rollingInterval": "Day",
5151

5252
// Sets the maximum size of the log file in bytes
53-
"fileSizeLimitBytes": "1000000",
53+
"fileSizeLimitBytes": "10485760", // ~10 MB
5454

5555
// Sets the format of log entries
5656
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}",

ConsoleAppTemplate/ConsoleAppTemplate/AppSettings.Production.json renamed to src/ConsoleAppTemplate/Content/AppSettings.Production.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"Name": "Console",
3232
"Args": {
3333
// Sets the format of log entries
34-
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}",
34+
"outputTemplate": "{Level:u3} {Message:lj}{NewLine}",
3535

3636
// Sets the minimum level for the console sink. Possible values are: Verbose, Debug, Information, Warning, Error, Fatal
3737
"restrictedToMinimumLevel": "Warning"
@@ -42,7 +42,7 @@
4242
"Name": "File",
4343
"Args": {
4444
// TODO Specify the location for the logs files
45-
"path": "logs/log-.txt",
45+
"path": "C:\\logs\\ConsoleAppTemplate\\ConsoleAppTemplate-.log",
4646

4747
// When true will create a new file is the current file size exceeds the fileSizeLimitBytes
4848
"rollOnFileSizeLimit": true,
@@ -51,7 +51,7 @@
5151
"rollingInterval": "Day",
5252

5353
// Sets the maximum size of the log file in bytes
54-
"fileSizeLimitBytes": "1000000",
54+
"fileSizeLimitBytes": "10485760", // ~10 MB
5555

5656
// Sets the format of log entries
5757
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}",

ConsoleAppTemplate/ConsoleAppTemplate/AppSettings.json renamed to src/ConsoleAppTemplate/Content/AppSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"Name": "File",
4242
"Args": {
4343
// TODO Specify the location for the logs files
44-
"path": "logs/log-.txt",
44+
"path": "C:\\logs\\ConsoleAppTemplate\\ConsoleAppTemplate-.log",
4545

4646
// When true will create a new file is the current file size exceeds the fileSizeLimitBytes
4747
"rollOnFileSizeLimit": true,
@@ -50,7 +50,7 @@
5050
"rollingInterval": "Day",
5151

5252
// Sets the maximum size of the log file in bytes
53-
"fileSizeLimitBytes": "1000000",
53+
"fileSizeLimitBytes": "10485760", // ~10 MB
5454

5555
// Sets the format of log entries
5656
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}",

0 commit comments

Comments
 (0)