Skip to content

Commit d47e255

Browse files
fix unit test
1 parent 33b6fe5 commit d47e255

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@
232232
<ItemGroup Condition="'$(TargetGroup)'=='netcoreapp'">
233233
<Compile Include="TracingTests\DiagnosticTest.cs" />
234234
<Compile Include="TracingTests\FakeDiagnosticListenerObserver.cs" />
235+
</ItemGroup>
236+
<!-- .Net core 3.0 & .Net standard 2.1 and above -->
237+
<ItemGroup Condition="'$(TargetGroup)'=='netcoreapp' AND !$(TargetFramework.StartsWith('netcoreapp2')) AND !$(ReferenceType.Contains('netcoreapp2')) AND !$(ReferenceType.Contains('NetStandard2.0'))">
235238
<Compile Include="TracingTests\EventCounterTest.cs" />
236239
</ItemGroup>
237240
<ItemGroup>

src/Microsoft.Data.SqlClient/tests/ManualTests/TracingTests/EventCounterTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
namespace Microsoft.Data.SqlClient.ManualTesting.Tests
1313
{
14+
/// <summary>
15+
/// This unit test is just valid for .NetCore 3.0 and above
16+
/// </summary>
1417
public class EventCounterTest
1518
{
1619
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup))]

0 commit comments

Comments
 (0)