Skip to content

Commit

Permalink
Add and Update to .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jul 10, 2024
1 parent c15e2f3 commit 438e93c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions CoreOSC.RecieverExample/CoreOSC.RecieverExample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>LucHeart.CoreOSC.RecieverExample</AssemblyName>
<RootNamespace>LucHeart.CoreOSC.RecieverExample</RootNamespace>
<LangVersion>11</LangVersion>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<Company>LucHeart</Company>
Expand Down
12 changes: 6 additions & 6 deletions CoreOSC.Tests/CoreOSC.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
<GenerateProgramFile>false</GenerateProgramFile>
<AssemblyName>LucHeart.CoreOSC.Tests</AssemblyName>
<RootNamespace>LucHeart.CoreOSC.Tests</RootNamespace>
<LangVersion>11</LangVersion>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Company>LucHeart</Company>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 3 additions & 2 deletions CoreOSC.Tests/ListenerTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Net.Sockets;
using System.Threading.Tasks;
using Xunit;
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously

namespace LucHeart.CoreOSC.Tests;

Expand All @@ -11,7 +12,7 @@ public class ListenerTest
/// Opening the second listener will fail unless the first one has been properly closed.
/// </summary>
[Fact(Timeout = 5000)]
public void CloseListener()
public async Task CloseListener()
{
var endpoint = TestUtils.GetNextEndpoint();
using (new OscListener(endpoint))
Expand All @@ -25,7 +26,7 @@ public void CloseListener()
/// Tries to open two listeners on the same port, results in an exception
/// </summary>
[Fact(Timeout = 5000)]
public void CloseListenerException()
public async Task CloseListenerException()
{
var endpoint = TestUtils.GetNextEndpoint();
Assert.Throws<SocketException>(() =>
Expand Down
10 changes: 5 additions & 5 deletions CoreOSC/CoreOSC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<AssemblyName>LucHeart.CoreOSC</AssemblyName>
<RootNamespace>LucHeart.CoreOSC</RootNamespace>
<TargetFrameworks>net7.0;netstandard2.1</TargetFrameworks>
<LangVersion>11</LangVersion>
<TargetFrameworks>net7.0;netstandard2.1;net8.0</TargetFrameworks>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>LucHeart.CoreOSC</PackageId>
Expand All @@ -13,10 +13,10 @@
<RepositoryUrl>https://github.com/LucHeart/CoreOSC-UTF8-ASYNC</RepositoryUrl>
<PackageTags>osc async</PackageTags>
<Company>LucHeart</Company>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<FileVersion>1.3.1.0</FileVersion>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<FileVersion>1.4.0.0</FileVersion>
<NeutralLanguage>en</NeutralLanguage>
<Version>1.3.1</Version>
<Version>1.4.0</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down

0 comments on commit 438e93c

Please sign in to comment.