Skip to content

Commit e05ab17

Browse files
CopilotJaxelr
andcommitted
Fix template generation error by removing unnecessary post action and conditionally including test project
Co-authored-by: Jaxelr <5913008+Jaxelr@users.noreply.github.com>
1 parent cde07cf commit e05ab17

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Content/.template.config/template.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,11 @@
2828
}
2929
},
3030
"primaryOutputs": [
31-
{
32-
"condition": "(includeTest)",
33-
"path": "tests/CarterService.Tests.csproj"
34-
},
3531
{
3632
"path": "CarterService.sln"
3733
}
3834
],
3935
"postActions": [
40-
{
41-
"condition": "(includeTest)",
42-
"description": "Add tests to solution.",
43-
"actionId": "D396686C-DE0E-4DE6-906D-291CD29FC5DE",
44-
"continueOnError": true
45-
},
4636
{
4737
"condition": "(!skipRestore)",
4838
"description": "Restore NuGet packages required by this project.",

Content/CarterService.sln

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
.gitignore = .gitignore
1212
EndProjectSection
1313
EndProject
14+
#if (includeTest)
1415
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CarterService.Tests", "tests\CarterService.Tests.csproj", "{BD70CCCF-83F5-4AC2-94EE-D02ECC05212B}"
1516
EndProject
17+
#endif
1618
Global
1719
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1820
Debug|Any CPU = Debug|Any CPU
@@ -23,10 +25,12 @@ Global
2325
{990C30E7-F5A2-4AD8-9F80-BD0D18E9AD4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
2426
{990C30E7-F5A2-4AD8-9F80-BD0D18E9AD4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
2527
{990C30E7-F5A2-4AD8-9F80-BD0D18E9AD4C}.Release|Any CPU.Build.0 = Release|Any CPU
28+
#if (includeTest)
2629
{BD70CCCF-83F5-4AC2-94EE-D02ECC05212B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2730
{BD70CCCF-83F5-4AC2-94EE-D02ECC05212B}.Debug|Any CPU.Build.0 = Debug|Any CPU
2831
{BD70CCCF-83F5-4AC2-94EE-D02ECC05212B}.Release|Any CPU.ActiveCfg = Release|Any CPU
2932
{BD70CCCF-83F5-4AC2-94EE-D02ECC05212B}.Release|Any CPU.Build.0 = Release|Any CPU
33+
#endif
3034
EndGlobalSection
3135
GlobalSection(SolutionProperties) = preSolution
3236
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)