Skip to content

Commit 2bfa507

Browse files
authored
Logitar class library now targets .NET Standard 2.1; fixed System usings. (#190)
1 parent 385535f commit 2bfa507

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
Nothing yet.
10+
### Changed
11+
12+
- `Logitar` class library now targets .NET Standard 2.1.
13+
14+
### Fixed
15+
16+
- System usings.
1117

1218
## [1.16.0] - 2024-03-26
1319

src/Logitar/Logitar.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<LangVersion>10</LangVersion>
56
<ImplicitUsings>enable</ImplicitUsings>
67
<Nullable>enable</Nullable>
78
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
@@ -34,6 +35,10 @@
3435
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
3536
</PropertyGroup>
3637

38+
<ItemGroup>
39+
<PackageReference Include="System.Text.Json" Version="8.0.3" />
40+
</ItemGroup>
41+
3742
<ItemGroup>
3843
<None Update="LICENSE">
3944
<Pack>True</Pack>

tests/Logitar.Net.Sms.Twilio.IntegrationTests/Logitar.Net.Sms.Twilio.IntegrationTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
</ItemGroup>
5353

5454
<ItemGroup>
55+
<Using Include="System.Net" />
56+
<Using Include="System.Text.Json" />
57+
<Using Include="System.Text.Json.Serialization" />
5558
<Using Include="Xunit" />
5659
</ItemGroup>
5760

tests/Logitar.Net.Sms.Twilio.IntegrationTests/TwilioClientTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
using Logitar.Net.Http;
33
using Logitar.Net.Sms.Twilio.Settings;
44
using Microsoft.Extensions.Configuration;
5-
using System.Net;
6-
using System.Text.Json;
75

86
namespace Logitar.Net.Sms.Twilio;
97

tests/Logitar.Net.Sms.Twilio.IntegrationTests/TwilioCreateMessageResult.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Text.Json.Serialization;
2-
3-
namespace Logitar.Net.Sms.Twilio;
1+
namespace Logitar.Net.Sms.Twilio;
42

53
internal record TwilioCreateMessageResult
64
{

0 commit comments

Comments
 (0)