Framework Update

A few changes, mostly to update the .NET framework version.
This commit is contained in:
JacobTech 2023-12-22 11:13:31 -05:00
parent 69168acd22
commit 97ed89b627
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@ -13,7 +13,7 @@
<RepositoryUrl>https://github.com/JacobTech-com/Luski.net</RepositoryUrl>
<IncludeSymbols>True</IncludeSymbols>
<FileVersion>1.0.0</FileVersion>
<Version>2.0.0-alpha24</Version>
<Version>2.0.0-alpha25</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -288,6 +288,7 @@ public class ServerStorage
public Stream GetResourceStream(StorageDirectory Directory, string Resource)
{
return File.OpenRead(Location + Directories[(byte)Directory] + "/" + Resource);
byte[] buffer = new byte[16 * 1024];
MemoryStream ms = new();
using (FileStream r = File.OpenRead(Location + Directories[(byte)Directory] + "/" + Resource))
@ -305,6 +306,7 @@ public class ServerStorage
public Stream GetResourceStream(string dir)
{
return File.OpenRead(dir);
byte[] buffer = new byte[16 * 1024];
MemoryStream ms = new();
using (FileStream r = File.OpenRead(dir))

View File

@ -30,7 +30,7 @@ public partial class Server
}
internal bool Secure = true;
internal string wssurl;
internal string wssurl { get; set; } = "";
public ServerEncryption EncryptionHandler { get; }
public ServerStorage Storage { get; }