Skip to content

Commit

Permalink
Merge pull request #124 from kirk-marple/main
Browse files Browse the repository at this point in the history
Added separate ItemGroup for target frameworks.
  • Loading branch information
SandraRodgers authored Sep 14, 2023
2 parents d3a16d1 + a34a5a6 commit 6d7b6fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Deepgram.Tests/Fakes/MockHttpMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Newtonsoft.Json;
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously

using Newtonsoft.Json;

namespace Deepgram.Tests.Fakes;
public class MockHttpMessageHandler : HttpMessageHandler
Expand Down
17 changes: 15 additions & 2 deletions Deepgram/Deepgram.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,25 @@
<None Include="D:\Sources\deepgram\deepgram-dotnet-sdk\Deepgram\.editorconfig" />
</ItemGroup>

<ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="System.Threading.Channels" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="System.Threading.Channels" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Threading.Channels" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup>
<EditorConfigFiles Remove="D:\Sources\deepgram\deepgram-dotnet-sdk\Deepgram\.editorconfig" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions Deepgram/DeepgramClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace Deepgram
{
public class DeepgramClient : BaseClient
{
private Credentials Credentials;

public IKeyClient Keys { get; protected set; }
public IProjectClient Projects { get; protected set; }
public ITranscriptionClient Transcription { get; protected set; }
Expand Down

0 comments on commit 6d7b6fd

Please sign in to comment.