diff --git a/SDK.CSharp.Example/ExampleConfig.cs b/SDK.CSharp.Example/ExampleConfig.cs index bc146f2..5954e4b 100644 --- a/SDK.CSharp.Example/ExampleConfig.cs +++ b/SDK.CSharp.Example/ExampleConfig.cs @@ -1,4 +1,7 @@ -namespace SDK.CSharp.Example; +using System; +using System.Collections.Generic; + +namespace SDK.CSharp.Example; public sealed class ExampleConfig { diff --git a/SDK.CSharp.Example/Http/PauseShocker.cs b/SDK.CSharp.Example/Http/PauseShocker.cs index d91e129..ef178b9 100644 --- a/SDK.CSharp.Example/Http/PauseShocker.cs +++ b/SDK.CSharp.Example/Http/PauseShocker.cs @@ -1,4 +1,7 @@ using OpenShock.SDK.CSharp; +using System; +using System.Linq; +using System.Threading.Tasks; namespace SDK.CSharp.Example.Http; diff --git a/SDK.CSharp.Example/IExample.cs b/SDK.CSharp.Example/IExample.cs index 1939746..d10c53f 100644 --- a/SDK.CSharp.Example/IExample.cs +++ b/SDK.CSharp.Example/IExample.cs @@ -1,4 +1,6 @@ -namespace SDK.CSharp.Example; +using System.Threading.Tasks; + +namespace SDK.CSharp.Example; public interface IExample { diff --git a/SDK.CSharp.Example/LiveControl.cs b/SDK.CSharp.Example/LiveControl.cs index e83d146..3d5d9ff 100644 --- a/SDK.CSharp.Example/LiveControl.cs +++ b/SDK.CSharp.Example/LiveControl.cs @@ -2,6 +2,8 @@ using OpenShock.SDK.CSharp; using OpenShock.SDK.CSharp.Live; using OpenShock.SDK.CSharp.Models; +using System; +using System.Threading.Tasks; namespace SDK.CSharp.Example; diff --git a/SDK.CSharp.Example/Program.cs b/SDK.CSharp.Example/Program.cs index e7f1ff8..658e4ed 100644 --- a/SDK.CSharp.Example/Program.cs +++ b/SDK.CSharp.Example/Program.cs @@ -1,5 +1,8 @@ -using System.Collections.Immutable; +using System; +using System.Collections.Immutable; +using System.Linq; using System.Text.Json; +using System.Threading; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; diff --git a/SDK.CSharp.Example/SDK.CSharp.Example.csproj b/SDK.CSharp.Example/SDK.CSharp.Example.csproj index 828b978..e8312c0 100644 --- a/SDK.CSharp.Example/SDK.CSharp.Example.csproj +++ b/SDK.CSharp.Example/SDK.CSharp.Example.csproj @@ -3,8 +3,6 @@ Exe net9.0 - enable - enable diff --git a/SDK.CSharp.Example/SignalrHub.cs b/SDK.CSharp.Example/SignalrHub.cs index ffb1b78..c376a45 100644 --- a/SDK.CSharp.Example/SignalrHub.cs +++ b/SDK.CSharp.Example/SignalrHub.cs @@ -1,6 +1,8 @@ using OpenShock.SDK.CSharp.Hub; using OpenShock.SDK.CSharp.Models; using Serilog; +using System.Linq; +using System.Threading.Tasks; namespace SDK.CSharp.Example; diff --git a/SDK.CSharp.Hub/HubClientOptions.cs b/SDK.CSharp.Hub/HubClientOptions.cs index e60c8d3..aacea3d 100644 --- a/SDK.CSharp.Hub/HubClientOptions.cs +++ b/SDK.CSharp.Hub/HubClientOptions.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Logging; -using OpenShock.SDK.CSharp; namespace OpenShock.SDK.CSharp.Hub; diff --git a/SDK.CSharp.Hub/SDK.CSharp.Hub.csproj b/SDK.CSharp.Hub/SDK.CSharp.Hub.csproj index 5e97d4f..a6f00c4 100644 --- a/SDK.CSharp.Hub/SDK.CSharp.Hub.csproj +++ b/SDK.CSharp.Hub/SDK.CSharp.Hub.csproj @@ -2,10 +2,6 @@ - OpenShock.SDK.CSharp.Hub - OpenShock.SDK.CSharp.Hub - SDK.DotNet.Hub - SDK.CSharp.Hub true diff --git a/SDK.CSharp.Live/SDK.CSharp.Live.csproj b/SDK.CSharp.Live/SDK.CSharp.Live.csproj index ba35ee8..eff9ff9 100644 --- a/SDK.CSharp.Live/SDK.CSharp.Live.csproj +++ b/SDK.CSharp.Live/SDK.CSharp.Live.csproj @@ -2,10 +2,6 @@ - OpenShock.SDK.CSharp.Live - OpenShock.SDK.CSharp.Live - SDK.DotNet.Live - SDK.CSharp.Live true diff --git a/SDK.CSharp.Tests/ClientUtils.cs b/SDK.CSharp.Tests/ClientUtils.cs index 912cb66..64d941b 100644 --- a/SDK.CSharp.Tests/ClientUtils.cs +++ b/SDK.CSharp.Tests/ClientUtils.cs @@ -1,6 +1,10 @@ -using System.Net; +using System; +using System.IO; +using System.Net; +using System.Net.Http; using System.Net.Mime; using System.Text; +using System.Threading.Tasks; using OpenShock.SDK.CSharp; namespace SDK.CSharp.Tests; diff --git a/SDK.CSharp.Tests/HttpMessageHandlerStub.cs b/SDK.CSharp.Tests/HttpMessageHandlerStub.cs index 59ce720..572e37b 100644 --- a/SDK.CSharp.Tests/HttpMessageHandlerStub.cs +++ b/SDK.CSharp.Tests/HttpMessageHandlerStub.cs @@ -1,3 +1,8 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + namespace SDK.CSharp.Tests; public class HttpMessageHandlerStub : HttpMessageHandler diff --git a/SDK.CSharp.Tests/SDK.CSharp.Tests.csproj b/SDK.CSharp.Tests/SDK.CSharp.Tests.csproj index d9229e1..3911cab 100644 --- a/SDK.CSharp.Tests/SDK.CSharp.Tests.csproj +++ b/SDK.CSharp.Tests/SDK.CSharp.Tests.csproj @@ -2,9 +2,6 @@ net9.0 - enable - enable - false true diff --git a/SDK.CSharp.Tests/TestShockerEndpoints.cs b/SDK.CSharp.Tests/TestShockerEndpoints.cs index c229986..7c76677 100644 --- a/SDK.CSharp.Tests/TestShockerEndpoints.cs +++ b/SDK.CSharp.Tests/TestShockerEndpoints.cs @@ -1,4 +1,6 @@ -namespace SDK.CSharp.Tests; +using System.Threading.Tasks; + +namespace SDK.CSharp.Tests; public sealed class TestShockerEndpoints { diff --git a/SDK.CSharp/OpenShockApiClient.cs b/SDK.CSharp/OpenShockApiClient.cs index d524ff7..e237862 100644 --- a/SDK.CSharp/OpenShockApiClient.cs +++ b/SDK.CSharp/OpenShockApiClient.cs @@ -1,7 +1,6 @@ using System.Collections.Immutable; using System.Net; using System.Net.Http.Json; -using System.Reflection; using System.Runtime.InteropServices; using System.Text.Json; using OneOf; diff --git a/SDK.CSharp/Problems/ProblemDetails.cs b/SDK.CSharp/Problems/ProblemDetails.cs index 28ed1a8..c3272aa 100644 --- a/SDK.CSharp/Problems/ProblemDetails.cs +++ b/SDK.CSharp/Problems/ProblemDetails.cs @@ -1,5 +1,4 @@ -using System.Net; -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace OpenShock.SDK.CSharp.Problems; diff --git a/SDK.CSharp/Problems/ShockerControlProblem.cs b/SDK.CSharp/Problems/ShockerControlProblem.cs index 8e20f37..2557e7d 100644 --- a/SDK.CSharp/Problems/ShockerControlProblem.cs +++ b/SDK.CSharp/Problems/ShockerControlProblem.cs @@ -1,6 +1,4 @@ -using System.Net; - -namespace OpenShock.SDK.CSharp.Problems; +namespace OpenShock.SDK.CSharp.Problems; public sealed class ShockerControlProblem : ProblemDetails { diff --git a/SDK.CSharp/SDK.CSharp.csproj b/SDK.CSharp/SDK.CSharp.csproj index e0b726e..0b38123 100644 --- a/SDK.CSharp/SDK.CSharp.csproj +++ b/SDK.CSharp/SDK.CSharp.csproj @@ -2,11 +2,7 @@ - OpenShock.SDK.CSharp - OpenShock.SDK.CSharp - OpenShock.SDK.DotNet true - OpenShock.SDK.CSharp diff --git a/SDK.CSharp/Utils/HttpResponseUtils.cs b/SDK.CSharp/Utils/HttpResponseUtils.cs index 98dccdd..595c32d 100644 --- a/SDK.CSharp/Utils/HttpResponseUtils.cs +++ b/SDK.CSharp/Utils/HttpResponseUtils.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using OneOf.Types; using OpenShock.SDK.CSharp.Models; namespace OpenShock.SDK.CSharp.Utils; diff --git a/Shared.props b/Shared.props index 7ac5b6f..2a71fca 100644 --- a/Shared.props +++ b/Shared.props @@ -4,16 +4,17 @@ $(Company).$(MSBuildProjectName) 0.0.34 + $(Product) OpenShock .NET / C# SDK for developing OpenShock applications. Used to interact with a OpenShock backend. https://github.com/OpenShock/SDK.CSharp https://openshock.org + $(Product) README.md AGPL-3.0-or-later True git openshock - 13 @@ -23,10 +24,13 @@ net8.0;net9.0;netstandard2.1 enable + Latest enable + $(Product) + $(Product) $(Version) $(Version) true snupkg - \ No newline at end of file +