Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"author": "Microsoft",
"name": "dotnet config file",
"description": "A file for configuring dotnet CLI behavior.",
"symbols/runner/description": "The test runner to use.",
"symbols/runner/displayName": "Test runner",
"postActions/open-file/description": "Opens dotnet.config in the editor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [
"Config"
],
"name": "dotnet config file",
"generatorVersions": "[1.0.0.0-*)",
"description": "A file for configuring dotnet CLI behavior.",
"tags": {
"type": "item"
},
"groupIdentity": "DotnetConfigFile",
"precedence": "100",
"identity": "Microsoft.Standard.QuickStarts.DotnetConfigFile",
"shortName": [ "dotnetconfig", "dotnet.config" ],
"sourceName": "unused",
"primaryOutputs": [
{
"path": "dotnet.config"
}
],
"defaultName": "dotnet.config",
"symbols": {
"HostIdentifier": {
"type": "bind",
"binding": "HostIdentifier"
},
"runner": {
"type": "parameter",
"datatype": "string",
"description": "The test runner to use.",
"displayName": "Test runner",
"defaultValue": "",
"replaces": "RUNNER_NAME"
},
"hasRunner": {
"type": "computed",
"value": "(runner != \"\")"
}
},
"postActions": [
{
"id": "open-file",
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"description": "Opens dotnet.config in the editor",
"manualInstructions": [],
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
"args": {
"files": "0"
},
"continueOnError": true
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//#if (hasRunner)
[dotnet.test.runner]
name = "RUNNER_NAME"
//#endif
13 changes: 13 additions & 0 deletions test/dotnet-new.IntegrationTests/SharedHomeDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ private void Initialize()
.ExitWith(0)
.And
.NotHaveStdErr();

// Install the ItemTemplates that contain templates like global.json, gitignore, etc.
string itemTemplatesPath = Path.Combine(Environment.CurrentDirectory, "template_feed", "Microsoft.DotNet.Common.ItemTemplates", "content");
if (Directory.Exists(itemTemplatesPath))
{
new DotnetNewCommand(Log, "install", itemTemplatesPath)
.WithCustomHive(HomeDirectory)
.Execute()
.Should()
.ExitWith(0)
.And
.NotHaveStdErr();
}
}
}
}
Loading