File tree 8 files changed +19
-19
lines changed
src/Aspire.ProjectTemplates/templates
9.2/Aspire-StarterApplication.1.Tests
8 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 17
17
"XUnitVersion" : {
18
18
"shortName" : " " ,
19
19
"longName" : " xunit-version" ,
20
- "defaultValue" : " v3 "
20
+ "defaultValue" : " v2 "
21
21
},
22
22
"appHostHttpPort" : {
23
23
"isHidden" : true
Original file line number Diff line number Diff line change 38
38
"symbols/XUnitVersion/description" : " The version of xUnit.net to use." ,
39
39
"symbols/XUnitVersion/displayName" : " xUnit.net version" ,
40
40
"symbols/XUnitVersion/choices/v2/displayName" : " v2" ,
41
- "symbols/XUnitVersion/choices/v2/description" : " Chooses xUnit v2 with VSTest" ,
41
+ "symbols/XUnitVersion/choices/v2/description" : " Chooses xUnit.net v2 with VSTest" ,
42
42
"symbols/XUnitVersion/choices/v3/displayName" : " v3" ,
43
- "symbols/XUnitVersion/choices/v3/description" : " Chooses xUnit v3 with VSTest (Aspire version 9.1 and later only)" ,
43
+ "symbols/XUnitVersion/choices/v3/description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.2 and later only)" ,
44
44
"symbols/XUnitVersion/choices/v3mtp/displayName" : " v3 with Microsoft Test Platform" ,
45
- "symbols/XUnitVersion/choices/v3mtp/description" : " Chooses xUnit v3 with Microsoft Test Platform (Aspire version 9.1 and later only)" ,
45
+ "symbols/XUnitVersion/choices/v3mtp/description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.2 and later only)" ,
46
46
"symbols/appHostHttpPort/description" : " Port number to use for the HTTP endpoint in launchSettings.json of the AppHost project." ,
47
47
"symbols/appHostOtlpHttpPort/description" : " Port number to use for the OTLP HTTP endpoint in launchSettings.json of the AppHost project." ,
48
48
"symbols/appHostResourceHttpPort/description" : " Port number to use for the resource service HTTP endpoint in launchSettings.json of the AppHost project." ,
Original file line number Diff line number Diff line change 259
259
"description" : " The version of xUnit.net to use." ,
260
260
"displayName" : " xUnit.net version" ,
261
261
"datatype" : " choice" ,
262
- "isEnabled" : " (TestFramework == ' xUnit.net' )" ,
262
+ "isEnabled" : " (TestFramework == xUnit.net)" ,
263
263
"replaces" : " XUnitVersion" ,
264
264
"choices" : [
265
265
{
270
270
{
271
271
"choice" : " v3" ,
272
272
"displayName" : " v3" ,
273
- "description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.1 and later only)"
273
+ "description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.2 and later only)"
274
274
},
275
275
{
276
276
"choice" : " v3mtp" ,
277
277
"displayName" : " v3 with Microsoft Test Platform" ,
278
- "description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.1 and later only)"
278
+ "description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.2 and later only)"
279
279
}
280
280
],
281
281
"defaultValue" : " v2"
Original file line number Diff line number Diff line change 7
7
<IsPackable >false</IsPackable >
8
8
<IsTestProject >true</IsTestProject >
9
9
<!-- #if (TestFrameworkIsXUnit) -->
10
- <UseMicrosoftTestingPlatformRunner Condition =" ' $(XUnitVersion)' != 'v2 ' " >true</UseMicrosoftTestingPlatformRunner >
11
- <TestingPlatformDotnetTestSupport Condition =" ' $(XUnitVersion)' != 'v2 ' " >true</TestingPlatformDotnetTestSupport >
10
+ <UseMicrosoftTestingPlatformRunner Condition =" $(XUnitVersion) == 'v3mtp ' " >true</UseMicrosoftTestingPlatformRunner >
11
+ <TestingPlatformDotnetTestSupport Condition =" $(XUnitVersion) == 'v3mtp ' " >true</TestingPlatformDotnetTestSupport >
12
12
<!-- #endif-->
13
13
</PropertyGroup >
14
14
26
26
<PackageReference Include =" NUnit.Analyzers" Version =" 4.2.0" Condition =" $(TestFramework) == 'NUnit' " />
27
27
<PackageReference Include =" NUnit3TestAdapter" Version =" 4.5.0" Condition =" $(TestFramework) == 'NUnit' " />
28
28
<!-- #if (TestFrameworkIsXUnit) -->
29
- <PackageReference Include =" xunit" Version =" 2.9.2 " Condition =" $(XUnitVersion) == 'v2' " />
29
+ <PackageReference Include =" xunit" Version =" 2.9.3 " Condition =" $(XUnitVersion) == 'v2' " />
30
30
<PackageReference Include =" xunit.runner.visualstudio" Version =" 3.0.2" Condition =" $(TestFramework) == 'xUnit.net' " />
31
31
<PackageReference Include =" xunit.v3" Version =" 2.0.0" Condition =" $(XUnitVersion) == 'v3' " />
32
32
<PackageReference Include =" xunit.v3" Version =" 2.0.0" Condition =" $(XUnitVersion) == 'v3mtp' " />
Original file line number Diff line number Diff line change 17
17
"XUnitVersion" : {
18
18
"shortName" : " " ,
19
19
"longName" : " xunit-version" ,
20
- "defaultValue" : " v3 "
20
+ "defaultValue" : " v2 "
21
21
},
22
22
"skipRestore" : {
23
23
"longName" : " no-restore" ,
Original file line number Diff line number Diff line change 30
30
"symbols/XUnitVersion/description" : " The version of xUnit.net to use." ,
31
31
"symbols/XUnitVersion/displayName" : " xUnit.net version" ,
32
32
"symbols/XUnitVersion/choices/v2/displayName" : " v2" ,
33
- "symbols/XUnitVersion/choices/v2/description" : " Chooses xUnit v2 with VSTest" ,
33
+ "symbols/XUnitVersion/choices/v2/description" : " Chooses xUnit.net v2 with VSTest" ,
34
34
"symbols/XUnitVersion/choices/v3/displayName" : " v3" ,
35
- "symbols/XUnitVersion/choices/v3/description" : " Chooses xUnit v3 with VSTest (Aspire version 9.1 and later only)" ,
35
+ "symbols/XUnitVersion/choices/v3/description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.2 and later only)" ,
36
36
"symbols/XUnitVersion/choices/v3mtp/displayName" : " v3 with Microsoft Test Platform" ,
37
- "symbols/XUnitVersion/choices/v3mtp/description" : " Chooses xUnit v3 with Microsoft Test Platform (Aspire version 9.1 and later only)" ,
37
+ "symbols/XUnitVersion/choices/v3mtp/description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.2 and later only)" ,
38
38
"symbols/skipRestore/description" : " If specified, skips the automatic restore of the project on create." ,
39
39
"postActions/restore/description" : " Restore NuGet packages required by this project." ,
40
40
"postActions/restore/manualInstructions/default/text" : " Run 'dotnet restore'"
Original file line number Diff line number Diff line change 178
178
{
179
179
"choice" : " v3" ,
180
180
"displayName" : " v3" ,
181
- "description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.1 and later only)"
181
+ "description" : " Chooses xUnit.net v3 with VSTest (Aspire version 9.2 and later only)"
182
182
},
183
183
{
184
184
"choice" : " v3mtp" ,
185
185
"displayName" : " v3 with Microsoft Test Platform" ,
186
- "description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.1 and later only)"
186
+ "description" : " Chooses xUnit.net v3 with Microsoft Test Platform (Aspire version 9.2 and later only)"
187
187
}
188
188
],
189
189
"defaultValue" : " v2"
Original file line number Diff line number Diff line change 6
6
<Nullable >enable</Nullable >
7
7
<IsPackable >false</IsPackable >
8
8
<IsTestProject >true</IsTestProject >
9
- <UseMicrosoftTestingPlatformRunner Condition =" ' $(XUnitVersion)' != 'v2 ' " >true</UseMicrosoftTestingPlatformRunner >
10
- <TestingPlatformDotnetTestSupport Condition =" ' $(XUnitVersion)' != 'v2 ' " >true</TestingPlatformDotnetTestSupport >
9
+ <UseMicrosoftTestingPlatformRunner Condition =" $(XUnitVersion) == 'v3mtp ' " >true</UseMicrosoftTestingPlatformRunner >
10
+ <TestingPlatformDotnetTestSupport Condition =" $(XUnitVersion) == 'v3mtp ' " >true</TestingPlatformDotnetTestSupport >
11
11
</PropertyGroup >
12
12
13
13
<ItemGroup >
14
14
<PackageReference Include =" Aspire.Hosting.Testing" Version =" !!REPLACE_WITH_LATEST_VERSION!!" />
15
15
<PackageReference Include =" coverlet.collector" Version =" 6.0.2" />
16
16
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0" />
17
- <PackageReference Include =" xunit" Version =" 2.9.2 " Condition =" $(XUnitVersion) == 'v2' " />
17
+ <PackageReference Include =" xunit" Version =" 2.9.3 " Condition =" $(XUnitVersion) == 'v2' " />
18
18
<PackageReference Include =" xunit.runner.visualstudio" Version =" 3.0.2" />
19
19
<PackageReference Include =" xunit.v3" Version =" 2.0.0" Condition =" $(XUnitVersion) == 'v3' " />
20
20
<PackageReference Include =" xunit.v3" Version =" 2.0.0" Condition =" $(XUnitVersion) == 'v3mtp' " />
You can’t perform that action at this time.
0 commit comments