-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jobs to fully test both netstandard2.0 and netstandard2.1 targets
- Loading branch information
1 parent
a346138
commit 7ad31a6
Showing
4 changed files
with
144 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Snowflake.Data.Tests/UnitTests/TargetFrameworkReporterTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using NUnit.Framework; | ||
using Snowflake.Data.Core; | ||
|
||
namespace Snowflake.Data.Tests.UnitTests | ||
{ | ||
[TestFixture] | ||
public class TargetFrameworkReporterTest | ||
{ | ||
[Test] | ||
public void TestTargetFramework() | ||
{ | ||
TargetFrameworkReporter.Report(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Snowflake.Data.Log; | ||
|
||
namespace Snowflake.Data.Core | ||
{ | ||
internal class TargetFrameworkReporter | ||
{ | ||
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<TargetFrameworkReporter>(); | ||
|
||
public static void Report() | ||
{ | ||
#if NETSTANDARD2_1 | ||
s_logger.Warn($"Using library targeted to netstandard 2.1"); | ||
#endif | ||
#if NETSTANDARD2_0 | ||
s_logger.Warn($"Using library targeted to netstandard 2.0"); | ||
#endif | ||
} | ||
} | ||
} |