diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/Microsoft.DotNet.Test.ProjectTemplates.6.0.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/Microsoft.DotNet.Test.ProjectTemplates.6.0.csproj new file mode 100644 index 00000000..38bc6161 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/Microsoft.DotNet.Test.ProjectTemplates.6.0.csproj @@ -0,0 +1,31 @@ + + + netstandard1.0 + False + False + False + $(TemplatesFolder) + False + true + true + 2008;NU5125 + + Microsoft.DotNet.Test.ProjectTemplates.6.0 + Microsoft + Test Templates for Microsoft Template Engine + en-US + https://github.com/dotnet/test-templates + © Microsoft Corporation. All rights reserved. + © .NET Foundation and Contributors + MIT + Template + + + + + + + content + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/template.json new file mode 100644 index 00000000..9bec161f --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "MSTest"], + "name": "Unit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains unit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.MSTest", + "precedence": "7000", + "identity": "Microsoft.Test.MSTest.CSharp.6.0", + "shortName": "mstest", + "tags": { + "language": "C#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.csproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.cs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Class1.cs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/Company.TestProject1.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/Company.TestProject1.csproj new file mode 100644 index 00000000..9cb6b6aa --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/Company.TestProject1.csproj @@ -0,0 +1,19 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/UnitTest1.cs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/UnitTest1.cs new file mode 100644 index 00000000..0cd33eab --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-CSharp/UnitTest1.cs @@ -0,0 +1,13 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Company.TestProject1 +{ + [TestClass] + public class UnitTest1 + { + [TestMethod] + public void TestMethod1() + { + } + } +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/template.json new file mode 100644 index 00000000..e6939731 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "MSTest"], + "name": "Unit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains unit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.MSTest", + "precedence": "7000", + "identity": "Microsoft.Test.MSTest.FSharp.6.0", + "shortName": "mstest", + "tags": { + "language": "F#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.fsproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "Tests.fs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Tests.fs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Company.TestProject1.fsproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Company.TestProject1.fsproj new file mode 100644 index 00000000..bd85daa8 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Company.TestProject1.fsproj @@ -0,0 +1,25 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + false + + + + + + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Program.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Program.fs new file mode 100644 index 00000000..0695f84c --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Program.fs @@ -0,0 +1 @@ +module Program = let [] main _ = 0 diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Tests.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Tests.fs new file mode 100644 index 00000000..66fae839 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-FSharp/Tests.fs @@ -0,0 +1,11 @@ +namespace Company.TestProject1 + +open System +open Microsoft.VisualStudio.TestTools.UnitTesting + +[] +type TestClass () = + + [] + member this.TestMethodPassing () = + Assert.IsTrue(true); diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/template.json new file mode 100644 index 00000000..4d9d1514 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "MSTest"], + "name": "Unit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains unit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.MSTest", + "precedence": "7000", + "identity": "Microsoft.Test.MSTest.VisualBasic.6.0", + "shortName": "mstest", + "tags": { + "language": "VB", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.vbproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.vb" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Class1.cs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/Company.TestProject1.vbproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/Company.TestProject1.vbproj new file mode 100644 index 00000000..b0f3879c --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/Company.TestProject1.vbproj @@ -0,0 +1,19 @@ + + + + Company.TestProject1 + net6.0 + TargetFrameworkOverride + + true + false + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/UnitTest1.vb b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/UnitTest1.vb new file mode 100644 index 00000000..cb02979b --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/MSTest-VisualBasic/UnitTest1.vb @@ -0,0 +1,12 @@ +Imports Microsoft.VisualStudio.TestTools.UnitTesting + +Namespace Company.TestProject1 + + Public Class UnitTest1 + + Sub TestSub() + + End Sub + End Class +End Namespace + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/.template.config/template.json new file mode 100644 index 00000000..134004a5 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/.template.config/template.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Item", + "defaultName": "NUnitTestItem", + "generatorVersions": "[1.0.0.0-*)", + "description": "A item that contains NUnit tests", + "groupIdentity": "NUnit3.DotNetNew.ItemTemplate", + "identity": "NUnit3.DotNetNew.ItemTemplate.CSharp", + "shortName": "nunit-test", + "tags": { + "language": "C#", + "type": "item" + }, + "sourceName": "UnitTest1", + "preferNameDirectory": true, + "primaryOutputs": [ + { "path": "UnitTest1.cs" } + ], + "postActions": [ + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens created test fixture class in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/UnitTest1.cs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/UnitTest1.cs new file mode 100644 index 00000000..d3ad9634 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp-Item/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests +{ + public class UnitTest1 + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/template.json new file mode 100644 index 00000000..f6efb80c --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/.template.config/template.json @@ -0,0 +1,84 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Project", + "defaultName": "NUnitTestProject", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains NUnit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "NUnit3.DotNetNew.Template", + "precedence": "7000", + "identity": "NUnit3.DotNetNew.Template.CSharp.6.0", + "shortName": "nunit", + "tags": { + "language": "C#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.csproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.cs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 UnitTest1.cs in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/Company.TestProject1.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/Company.TestProject1.csproj new file mode 100644 index 00000000..02f67595 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/Company.TestProject1.csproj @@ -0,0 +1,19 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/UnitTest1.cs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/UnitTest1.cs new file mode 100644 index 00000000..79c6630f --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-CSharp/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Company.TestProject1 +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/.template.config/template.json new file mode 100644 index 00000000..2871c425 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/.template.config/template.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Item", + "defaultName": "NUnitTestItem", + "generatorVersions": "[1.0.0.0-*)", + "description": "A item that contains NUnit tests", + "groupIdentity": "NUnit3.DotNetNew.ItemTemplate", + "identity": "NUnit3.DotNetNew.ItemTemplate.FSharp", + "shortName": "nunit-test", + "tags": { + "language": "F#", + "type": "item" + }, + "sourceName": "UnitTest1", + "preferNameDirectory": true, + "primaryOutputs": [ + { "path": "UnitTest1.fs" } + ], + "postActions": [ + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens created test fixture class in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0" + }, + "continueOnError": true + } + ] +} \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/UnitTest1.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/UnitTest1.fs new file mode 100644 index 00000000..b48a00b3 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp-Item/UnitTest1.fs @@ -0,0 +1,11 @@ +module Tests + +open NUnit.Framework + +[] +let Setup () = + () + +[] +let Test1 () = + Assert.Pass() diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/template.json new file mode 100644 index 00000000..d1abc2c6 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/.template.config/template.json @@ -0,0 +1,84 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Project", + "defaultName": "NUnitTestProject", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains NUnit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "NUnit3.DotNetNew.Template", + "precedence": "7000", + "identity": "NUnit3.DotNetNew.Template.FSharp.6.0", + "shortName": "nunit", + "tags": { + "language": "F#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.fsproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.fs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 UnitTest1.fs in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Company.TestProject1.fsproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Company.TestProject1.fsproj new file mode 100644 index 00000000..6e5d2c62 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Company.TestProject1.fsproj @@ -0,0 +1,25 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + false + + + + + + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Program.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Program.fs new file mode 100644 index 00000000..176a7b68 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/Program.fs @@ -0,0 +1,4 @@ +module Program = + + [] + let main _ = 0 diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/UnitTest1.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/UnitTest1.fs new file mode 100644 index 00000000..41f7e0a4 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-FSharp/UnitTest1.fs @@ -0,0 +1,11 @@ +module Company.TestProject1 + +open NUnit.Framework + +[] +let Setup () = + () + +[] +let Test1 () = + Assert.Pass() diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/.template.config/template.json new file mode 100644 index 00000000..99983bf0 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/.template.config/template.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Item", + "defaultName": "NUnitTestItem", + "generatorVersions": "[1.0.0.0-*)", + "description": "A item that contains NUnit tests", + "groupIdentity": "NUnit3.DotNetNew.ItemTemplate", + "identity": "NUnit3.DotNetNew.ItemTemplate.VisualBasic", + "shortName": "nunit-test", + "tags": { + "language": "VB", + "type": "item" + }, + "sourceName": "UnitTest1", + "preferNameDirectory": true, + "primaryOutputs": [ + { "path": "UnitTest1.vb" } + ], + "postActions": [ + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "description": "Opens created test fixture class in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "0" + }, + "continueOnError": true + } + ] +} \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/UnitTest1.vb b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/UnitTest1.vb new file mode 100644 index 00000000..9d0ab033 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic-Item/UnitTest1.vb @@ -0,0 +1,18 @@ +Imports NUnit.Framework + +Namespace Tests + + Public Class UnitTest1 + + + Public Sub Setup() + End Sub + + + Public Sub Test1() + Assert.Pass() + End Sub + + End Class + +End Namespace \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/template.json new file mode 100644 index 00000000..f9a3b5cf --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/.template.config/template.json @@ -0,0 +1,84 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Aleksei Kharlov aka halex2005 (codeofclimber.ru)", + "classifications": [ "Test", "NUnit" ], + "name": "NUnit 3 Test Project", + "defaultName": "NUnitTestProject", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains NUnit tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "NUnit3.DotNetNew.Template", + "precedence": "7000", + "identity": "NUnit3.DotNetNew.Template.VisualBasic.6.0", + "shortName": "nunit", + "tags": { + "language": "VB", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.vbproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.vb" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 UnitTest1.vb in the editor", + "manualInstructions": [ ], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/Company.TestProject1.vbproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/Company.TestProject1.vbproj new file mode 100644 index 00000000..02f67595 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/Company.TestProject1.vbproj @@ -0,0 +1,19 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + + + + + + + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/UnitTest1.vb b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/UnitTest1.vb new file mode 100644 index 00000000..7203e284 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/NUnit-VisualBasic/UnitTest1.vb @@ -0,0 +1,18 @@ +Imports NUnit.Framework + +Namespace Company.TestProject1 + + Public Class Tests + + + Public Sub Setup() + End Sub + + + Public Sub Test1() + Assert.Pass() + End Sub + + End Class + +End Namespace \ No newline at end of file diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/template.json new file mode 100644 index 00000000..bacb798d --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "xUnit"], + "name": "xUnit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains xUnit.net tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.xUnit", + "precedence": "7000", + "identity": "Microsoft.Test.xUnit.CSharp.6.0", + "shortName": "xunit", + "tags": { + "language": "C#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.csproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.cs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Class1.cs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/Company.TestProject1.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/Company.TestProject1.csproj new file mode 100644 index 00000000..6275ba9a --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/Company.TestProject1.csproj @@ -0,0 +1,25 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/UnitTest1.cs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/UnitTest1.cs new file mode 100644 index 00000000..4f9e9bc6 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-CSharp/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace Company.TestProject1 +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..49fa37c2 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/dotnetcli.host.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/template.json new file mode 100644 index 00000000..cbaf08c0 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "xUnit"], + "name": "xUnit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains xUnit.net tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.xUnit", + "precedence": "7000", + "identity": "Microsoft.Test.xUnit.FSharp.6.0", + "shortName": "xunit", + "tags": { + "language": "F#", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.fsproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "Tests.fs" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Tests.fs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Company.TestProject1.fsproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Company.TestProject1.fsproj new file mode 100644 index 00000000..d1964c42 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Company.TestProject1.fsproj @@ -0,0 +1,31 @@ + + + + net6.0 + TargetFrameworkOverride + Company.TestProject1 + + true + false + false + + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Program.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Program.fs new file mode 100644 index 00000000..0695f84c --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Program.fs @@ -0,0 +1 @@ +module Program = let [] main _ = 0 diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Tests.fs b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Tests.fs new file mode 100644 index 00000000..7d11a645 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-FSharp/Tests.fs @@ -0,0 +1,8 @@ +module Tests + +open System +open Xunit + +[] +let ``My test`` () = + Assert.True(true) diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/dotnetcli.host.json new file mode 100644 index 00000000..6f20dff7 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/dotnetcli.host.json @@ -0,0 +1,25 @@ +{ + "$schema": "http://json.schemastore.org/dotnetcli.host", + "symbolInfo": { + "TargetFrameworkOverride": { + "isHidden": "true", + "longName": "target-framework-override", + "shortName": "" + }, + "Framework": { + "longName": "framework" + }, + "EnablePack": { + "shortName": "p", + "longName": "enable-pack" + }, + "skipRestore": { + "longName": "no-restore", + "shortName": "" + } + }, + "usageExamples": [ + "" + ] +} + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/template.json b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/template.json new file mode 100644 index 00000000..dfd44c58 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/.template.config/template.json @@ -0,0 +1,83 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Microsoft", + "classifications": ["Test", "xUnit"], + "name": "xUnit Test Project", + "generatorVersions": "[1.0.0.0-*)", + "description": "A project that contains xUnit.net tests that can run on .NET Core on Windows, Linux and macOS", + "groupIdentity": "Microsoft.Test.xUnit", + "precedence": "7000", + "identity": "Microsoft.Test.xUnit.VisualBasic.6.0", + "shortName": "xunit", + "tags": { + "language": "VB", + "type": "project" + }, + "sourceName": "Company.TestProject1", + "preferNameDirectory": true, + "symbols": { + "TargetFrameworkOverride": { + "type": "parameter", + "description": "Overrides the target framework", + "replaces": "TargetFrameworkOverride", + "datatype": "string", + "defaultValue": "" + }, + "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" + }, + "EnablePack": { + "type": "parameter", + "datatype": "bool", + "defaultValue": "false", + "description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project." + }, + "HostIdentifier": { + "type": "bind", + "binding": "HostIdentifier" + }, + "skipRestore": { + "type": "parameter", + "datatype": "bool", + "description": "If specified, skips the automatic restore of the project on create.", + "defaultValue": "false" + } + }, + "primaryOutputs": [ + { "path": "Company.TestProject1.vbproj" }, + { + "condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", + "path": "UnitTest1.vb" + } + ], + "defaultName": "TestProject1", + "postActions": [ + { + "condition": "(!skipRestore)", + "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 Class1.cs in the editor", + "manualInstructions": [], + "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", + "args": { + "files": "1" + }, + "continueOnError": true + } + ] +} diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/Company.TestProject1.vbproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/Company.TestProject1.vbproj new file mode 100644 index 00000000..8bb19573 --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/Company.TestProject1.vbproj @@ -0,0 +1,25 @@ + + + + Company.TestProject1 + net6.0 + TargetFrameworkOverride + + true + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/UnitTest1.vb b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/UnitTest1.vb new file mode 100644 index 00000000..164874df --- /dev/null +++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.6.0/content/XUnit-VisualBasic/UnitTest1.vb @@ -0,0 +1,12 @@ +Imports System +Imports Xunit + +Namespace Company.TestProject1 + Public Class UnitTest1 + + Sub TestSub() + + End Sub + End Class +End Namespace + diff --git a/template_feed/NetCoreTestTemplates.sln b/template_feed/NetCoreTestTemplates.sln index b577878d..41e819b7 100644 --- a/template_feed/NetCoreTestTemplates.sln +++ b/template_feed/NetCoreTestTemplates.sln @@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Test.Proje EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Test.ProjectTemplates.5.0", "Microsoft.DotNet.Test.ProjectTemplates.5.0\Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj", "{4FF81B55-C366-4113-8462-EB3A13A2892F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.DotNet.Test.ProjectTemplates.6.0", "Microsoft.DotNet.Test.ProjectTemplates.6.0\Microsoft.DotNet.Test.ProjectTemplates.6.0.csproj", "{3A8C7801-14A5-4361-A557-2B0233F52C06}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,6 +35,10 @@ Global {4FF81B55-C366-4113-8462-EB3A13A2892F}.Debug|Any CPU.Build.0 = Debug|Any CPU {4FF81B55-C366-4113-8462-EB3A13A2892F}.Release|Any CPU.ActiveCfg = Release|Any CPU {4FF81B55-C366-4113-8462-EB3A13A2892F}.Release|Any CPU.Build.0 = Release|Any CPU + {3A8C7801-14A5-4361-A557-2B0233F52C06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3A8C7801-14A5-4361-A557-2B0233F52C06}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3A8C7801-14A5-4361-A557-2B0233F52C06}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3A8C7801-14A5-4361-A557-2B0233F52C06}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE