mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 04:28:00 +03:00
Netcore fixes
This commit is contained in:
parent
c43b4767dc
commit
1e0f7a835c
@ -5,6 +5,8 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.IO;
|
||||
|
||||
#if !NETCORE
|
||||
|
||||
internal class SourceServerQuery :IDisposable
|
||||
{
|
||||
public class PlayersResponse
|
||||
@ -506,4 +508,6 @@ internal class SourceServerQuery :IDisposable
|
||||
|
||||
return output;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -9,6 +9,8 @@
|
||||
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>
|
||||
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
|
||||
<RootNamespace>Facepunch.Steamworks</RootNamespace>
|
||||
<Description />
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
@ -21,4 +23,8 @@
|
||||
<NoWarn>1701;1702;1705;618;1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -2,6 +2,8 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#if !NETCORE
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
@ -34,3 +36,5 @@ using System.Runtime.InteropServices;
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion( "1.2.0.0" )]
|
||||
[assembly: AssemblyFileVersion("1.2.0.0")]
|
||||
|
||||
#endif
|
@ -37,6 +37,7 @@ namespace SteamNative
|
||||
{
|
||||
_os = Facepunch.Steamworks.OperatingSystem.Windows;
|
||||
|
||||
#if !NETCORE
|
||||
//
|
||||
// These checks aren't so accurate on older versions of mono
|
||||
//
|
||||
@ -48,6 +49,7 @@ namespace SteamNative
|
||||
//
|
||||
if ( Environment.OSVersion.VersionString.ToLower().Contains( "unix" ) ) _os = Facepunch.Steamworks.OperatingSystem.Linux;
|
||||
if ( Environment.OSVersion.VersionString.ToLower().Contains( "osx" ) ) _os = Facepunch.Steamworks.OperatingSystem.Osx;
|
||||
#endif
|
||||
}
|
||||
|
||||
return _os;
|
||||
|
Loading…
x
Reference in New Issue
Block a user