Upgraded to dotnet 9. Fixed smaller issues
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using MoonCore.Extended.SingleDb;
|
||||
using Moonlight.ApiServer.Configuration;
|
||||
using Moonlight.ApiServer.Helpers;
|
||||
using MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Database;
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<IsPackable>true</IsPackable>
|
||||
<Version>2.1.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="Nuget Settings">
|
||||
<PackageId>MoonlightServers.ApiServer</PackageId>
|
||||
<Title>MoonlightServers.ApiServer</Title>
|
||||
<Version>2.1.0</Version>
|
||||
<PackageTags>apiserver</PackageTags>
|
||||
<IsPackable>true</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Moonlight.ApiServer" Version="2.1.0"/>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.15"/>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -13,22 +13,6 @@ using MoonlightServers.ApiServer.Startup;
|
||||
|
||||
var startup = new Startup();
|
||||
|
||||
#region Creating virtual plugin manifest from plugin.json file
|
||||
|
||||
// Read out content
|
||||
var pluginManifestJson = await File.ReadAllTextAsync("../plugin.json");
|
||||
|
||||
// Parse to model
|
||||
var pluginManifest = JsonSerializer.Deserialize<PluginManifest>(pluginManifestJson, new JsonSerializerOptions()
|
||||
{
|
||||
PropertyNameCaseInsensitive = true
|
||||
})!;
|
||||
|
||||
// Clear assemblies as we are loading them using the additional assembly parameter
|
||||
pluginManifest.Assemblies.Clear();
|
||||
|
||||
#endregion
|
||||
|
||||
await startup.Run(args, [
|
||||
new PluginStartup()
|
||||
]);
|
||||
Reference in New Issue
Block a user