|
1 | | -{ |
| 1 | +{ |
2 | 2 | "$schema": "http://json.schemastore.org/template", |
3 | 3 | "author": "Egil Hansen", |
4 | 4 | "classifications": [ |
|
18 | 18 | }, |
19 | 19 | "sourceName": "Company.BlazorTests1", |
20 | 20 | "defaultName": "BlazorTestProject1", |
21 | | - "preferNameDirectory": true, |
22 | | - "symbols": { |
23 | | - "HostIdentifier": { |
24 | | - "type": "bind", |
25 | | - "binding": "HostIdentifier" |
26 | | - }, |
27 | | - "skipRestore": { |
28 | | - "type": "parameter", |
29 | | - "datatype": "bool", |
30 | | - "description": "If specified, skips the automatic restore of the project on create.", |
31 | | - "defaultValue": "false" |
32 | | - } |
33 | | - }, |
| 21 | + "preferNameDirectory": true, |
| 22 | + "sources": [ |
| 23 | + { |
| 24 | + "modifiers": [ |
| 25 | + { |
| 26 | + "exclude": [ "BunitTestContext.cs" ], |
| 27 | + "condition": "(testFramework_xunit)" |
| 28 | + } |
| 29 | + ] |
| 30 | + } |
| 31 | + ], |
| 32 | + "symbols": { |
| 33 | + "HostIdentifier": { |
| 34 | + "type": "bind", |
| 35 | + "binding": "HostIdentifier" |
| 36 | + }, |
| 37 | + "skipRestore": { |
| 38 | + "type": "parameter", |
| 39 | + "datatype": "bool", |
| 40 | + "description": "If specified, skips the automatic restore of the project on create.", |
| 41 | + "defaultValue": "false" |
| 42 | + }, |
| 43 | + "UnitTestFramework": { |
| 44 | + "type": "parameter", |
| 45 | + "description": "The target unit testing framework for the project.", |
| 46 | + "displayName": "Unit test framework", |
| 47 | + "datatype": "choice", |
| 48 | + "defaultValue": "xunit", |
| 49 | + "replaces": "UnitTestFramework", |
| 50 | + "choices": [ |
| 51 | + { |
| 52 | + "choice": "nunit", |
| 53 | + "description": "NUnit unit testing framework", |
| 54 | + "displayName": "NUnit" |
| 55 | + }, |
| 56 | + { |
| 57 | + "choice": "xunit", |
| 58 | + "description": "xUnit unit testing framework", |
| 59 | + "displayName": "xUnit" |
| 60 | + }, |
| 61 | + { |
| 62 | + "choice": "mstest", |
| 63 | + "description": "MSTest unit testing framework", |
| 64 | + "displayName": "MSTest" |
| 65 | + } |
| 66 | + ] |
| 67 | + }, |
| 68 | + "testFramework_nunit": { |
| 69 | + "type": "computed", |
| 70 | + "value": "UnitTestFramework == \"nunit\"" |
| 71 | + }, |
| 72 | + "testFramework_xunit": { |
| 73 | + "type": "computed", |
| 74 | + "value": "UnitTestFramework == \"xunit\"" |
| 75 | + }, |
| 76 | + "testFramework_mstest": { |
| 77 | + "type": "computed", |
| 78 | + "value": "UnitTestFramework == \"mstest\"" |
| 79 | + } |
| 80 | + }, |
34 | 81 | "primaryOutputs": [ |
35 | 82 | { "path": "Company.BlazorTests1.csproj" } |
36 | 83 | ], |
37 | 84 | "postActions": [ |
38 | | - { |
39 | | - "condition": "(!skipRestore)", |
40 | | - "description": "Restore NuGet packages required by this project.", |
41 | | - "manualInstructions": [ { "text": "Run 'dotnet restore'" } ], |
42 | | - "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025", |
43 | | - "continueOnError": true |
44 | | - } |
45 | | - //}, |
46 | | - //{ |
47 | | - // "description": "Adding latests bUnit.Core reference", |
48 | | - // "actionId": "B17581D1-C5C9-4489-8F0A-004BE667B814", |
49 | | - // "continueOnError": true, |
50 | | - // "manualInstructions": [ |
51 | | - // { |
52 | | - // "text": "Manually add the 'bunit.core' reference to your project file" |
53 | | - // } |
54 | | - // ], |
55 | | - // "args": { |
56 | | - // "referenceType": "package", |
57 | | - // "reference": "bunit.core", |
58 | | - // "projectFileExtensions": ".csproj" |
59 | | - // } |
60 | | - //}, |
61 | | - //{ |
62 | | - // "description": "Adding latests bUnit.Web reference", |
63 | | - // "actionId": "B17581D1-C5C9-4489-8F0A-004BE667B814", |
64 | | - // "continueOnError": true, |
65 | | - // "manualInstructions": [ |
66 | | - // { |
67 | | - // "text": "Manually add the 'bunit.web' reference to your project file" |
68 | | - // } |
69 | | - // ], |
70 | | - // "args": { |
71 | | - // "referenceType": "package", |
72 | | - // "reference": "bunit.web", |
73 | | - // "projectFileExtensions": ".csproj" |
74 | | - // } |
75 | | - //}, |
76 | | - //{ |
77 | | - // "description": "Adding latests bUnit.xUnit reference", |
78 | | - // "actionId": "B17581D1-C5C9-4489-8F0A-004BE667B814", |
79 | | - // "continueOnError": true, |
80 | | - // "manualInstructions": [ |
81 | | - // { |
82 | | - // "text": "Manually add the 'bunit.xunit' reference to your project file" |
83 | | - // } |
84 | | - // ], |
85 | | - // "args": { |
86 | | - // "referenceType": "package", |
87 | | - // "reference": "bunit.xunit", |
88 | | - // "projectFileExtensions": ".csproj" |
89 | | - // } |
90 | | - //} |
| 85 | + { |
| 86 | + "condition": "(!skipRestore)", |
| 87 | + "description": "Restore NuGet packages required by this project.", |
| 88 | + "manualInstructions": [ { "text": "Run 'dotnet restore'" } ], |
| 89 | + "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025", |
| 90 | + "continueOnError": true |
| 91 | + } |
91 | 92 | ] |
92 | 93 | } |
0 commit comments