Skip to content

Commit 0f932e7

Browse files
authored
Fix 134 - TUnit projects should not reference Microsoft.NET.Test.Sdk package. (#166)
1 parent b80f37c commit 0f932e7

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## Improvements:
44

55
## Bug fixes:
6-
7-
*Contributors of this release (in alphabetical order):*
6+
* Fix: TUnit projects should not include a package reference to Microsoft.NET.Test.Sdk (#134)
7+
*
8+
*Contributors of this release (in alphabetical order):* @clrudolphi
89

910
# v2026.1.477 - 2026-01-28
1011

Reqnroll.VisualStudio.ProjectTemplate/ProjectTemplate.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
<TargetFramework>$dotnetframework$</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>$if$ ('$rootnamespace$' != '')
7-
<RootNamespace>$rootnamespace$</RootNamespace>$endif$
7+
<RootNamespace>$rootnamespace$</RootNamespace>$endif$$if$ ('$unittestframework$' == 'TUnit')
8+
<OutputType>Exe</OutputType>$endif$
89
</PropertyGroup>
910

10-
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />$if$ ('$unittestframework$' == 'xUnit')
11+
<ItemGroup>$if$ ('$unittestframework$' != 'TUnit')
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />$endif$$if$ ('$unittestframework$' == 'xUnit')
1213
<PackageReference Include="Reqnroll.xUnit" Version="3.2.0" />
1314
<PackageReference Include="xunit" Version="2.9.3" />
1415
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.3" />$endif$$if$ ('$unittestframework$' == 'xUnit.v3')
@@ -21,8 +22,8 @@
2122
<PackageReference Include="Reqnroll.MsTest" Version="3.2.0" />
2223
<PackageReference Include="MSTest.TestAdapter" Version="3.10.2" />
2324
<PackageReference Include="MSTest.TestFramework" Version="3.10.2" />$endif$$if$ ('$unittestframework$' == 'TUnit')
24-
<PackageReference Include="Reqnroll.TUnit" Version="3.2.0" />
25-
<PackageReference Include="TUnit" Version="0.55.23" />$endif$$if$ ('$fluentassertionsincluded$' == 'True')
25+
<PackageReference Include="Reqnroll.TUnit" Version="3.3.0" />
26+
<PackageReference Include="TUnit" Version="1.19.74" />$endif$$if$ ('$fluentassertionsincluded$' == 'True')
2627
<PackageReference Include="FluentAssertions" Version="7.2.0" />$endif$
2728
</ItemGroup>
2829

0 commit comments

Comments
 (0)