-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
357f056
commit 7439d76
Showing
9 changed files
with
325 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...otNet.Common.ProjectTemplates.6.0/content/App-CSharp/.template.config/dotnetcli.host.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/dotnetcli.host", | ||
"symbolInfo": { | ||
"target-framework-override": { | ||
"isHidden": "true", | ||
"shortName": "" | ||
}, | ||
"no-restore": { | ||
"shortName": "" | ||
}, | ||
"langVersion": { | ||
"shortName": "" | ||
}, | ||
"nullable": { | ||
"shortName": "" | ||
} | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
...soft.DotNet.Common.ProjectTemplates.6.0/content/App-CSharp/.template.config/template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Microsoft", | ||
"classifications": [ "Common", "Console" ], | ||
"name": "Simple Console Application", | ||
"generatorVersions": "[1.0.0.0-*)", | ||
"description": "A project for creating a command line application that uses the latest C# features and runs on .NET Core on Windows, Linux and macOS.", | ||
"groupIdentity": "Microsoft.Common.App", | ||
"precedence": "1000", | ||
"identity": "Microsoft.Common.App.CSharp.6.0", | ||
"shortName": "app", | ||
"tags": { | ||
"language": "C#", | ||
"type": "project" | ||
}, | ||
"sourceName": "Company.Application1", | ||
"preferNameDirectory": true, | ||
"symbols": { | ||
"framework": { | ||
"type": "parameter", | ||
"description": "The target framework for the project.", | ||
"datatype": "choice", | ||
"choices": [ | ||
{ | ||
"choice": "net6.0", | ||
"description": "Target net6.0" | ||
} | ||
], | ||
"replaces": "net6.0", | ||
"defaultValue": "net6.0" | ||
}, | ||
"langVersion": { | ||
"type": "parameter", | ||
"datatype": "text", | ||
"description": "Sets the LangVersion property in the created project file", | ||
"defaultValue": "", | ||
"replaces": "$(ProjectLanguageVersion)" | ||
}, | ||
"no-restore": { | ||
"type": "parameter", | ||
"datatype": "bool", | ||
"description": "If specified, skips the automatic restore of the project on create.", | ||
"defaultValue": "false" | ||
}, | ||
"nullable": { | ||
"type": "parameter", | ||
"datatype": "bool", | ||
"defaultValue": "true", | ||
"description": "Whether to enable nullable reference types for this project." | ||
}, | ||
"target-framework-override": { | ||
"type": "parameter", | ||
"description": "Overrides the target framework", | ||
"replaces": "target-framework-override", | ||
"datatype": "string", | ||
"defaultValue": "" | ||
}, | ||
"HostIdentifier": { | ||
"type": "bind", | ||
"binding": "HostIdentifier" | ||
} | ||
}, | ||
"primaryOutputs": [ | ||
{ "path": "Company.Application1.csproj" }, | ||
{ | ||
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", | ||
"path": "Program.cs" | ||
} | ||
], | ||
"defaultName": "Application1", | ||
"postActions": [ | ||
{ | ||
"condition": "(!no-restore)", | ||
"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 Program.cs in the editor", | ||
"manualInstructions": [], | ||
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", | ||
"args": { | ||
"files": "1" | ||
}, | ||
"continueOnError": true | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...crosoft.DotNet.Common.ProjectTemplates.6.0/content/App-CSharp/Company.Application1.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework Condition="'$(target-framework-override)' == ''">net6.0</TargetFramework> | ||
<TargetFramework Condition="'$(target-framework-override)' != ''">target-framework-override</TargetFramework> | ||
<LangVersion Condition="'$(langVersion)' != ''">$(ProjectLanguageVersion)</LangVersion> | ||
<Nullable Condition="'$(nullable)' == 'true'">enable</Nullable> | ||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> | ||
</PropertyGroup> | ||
|
||
</Project> |
4 changes: 4 additions & 0 deletions
4
template_feed/Microsoft.DotNet.Common.ProjectTemplates.6.0/content/App-CSharp/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
using System; | ||
|
||
Console.WriteLine("Hello, World!"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.