mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Fix release build issues
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
<TgsApiVersion>9.11.0</TgsApiVersion>
|
||||
<TgsCommonLibraryVersion>6.0.0</TgsCommonLibraryVersion>
|
||||
<TgsApiLibraryVersion>11.0.0</TgsApiLibraryVersion>
|
||||
<TgsClientVersion>12.0.0</TgsClientVersion>
|
||||
<TgsClientVersion>13.0.0</TgsClientVersion>
|
||||
<TgsDmapiVersion>6.5.2</TgsDmapiVersion>
|
||||
<TgsInteropVersion>5.6.1</TgsInteropVersion>
|
||||
<TgsHostWatchdogVersion>1.4.0</TgsHostWatchdogVersion>
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Tgstation.Server.Client.Components
|
||||
if (file == null)
|
||||
throw new ArgumentNullException(nameof(file));
|
||||
var configFile = await ApiClient.Read<ConfigurationFileResponse>(
|
||||
Routes.ConfigurationFile + Routes.SanitizeGetPath(file.Path ?? throw new ArgumentException("file.Path should not be null!", nameof(file))),
|
||||
Routes.ConfigurationFile + Routes.SanitizeGetPath(file.Path ?? throw new InvalidOperationException("file.Path should not be null!")),
|
||||
instance.Id!.Value,
|
||||
cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Tgstation.Server.Client
|
||||
if (token == null)
|
||||
throw new ArgumentNullException(nameof(token));
|
||||
if (token.Bearer == null)
|
||||
throw new ArgumentException("token.Bearer should not be null!", nameof(token));
|
||||
throw new InvalidOperationException("token.Bearer should not be null!");
|
||||
|
||||
return new ServerClient(ApiClientFactory.CreateApiClient(host, new ApiHeaders(productHeaderValue, token.Bearer), null, false), token);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace Tgstation.Server.Host.Components.Byond
|
||||
ArgumentNullException.ThrowIfNull(version);
|
||||
|
||||
if (version.Build == 0)
|
||||
throw new ArgumentException("version.Build cannot be 0!", nameof(version));
|
||||
throw new InvalidOperationException("version.Build cannot be 0!");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace Tgstation.Server.Host.Configuration
|
||||
else if (ConfigVersion != CurrentConfigVersion)
|
||||
if (ConfigVersion.Major != CurrentConfigVersion.Major)
|
||||
logger.LogCritical(
|
||||
"Your `ConfigVersion` is majorly out-of-date and may potentially cause issues running the server. Please follow migration instructions from the TGS release notes.",
|
||||
"Your `ConfigVersion` is majorly out-of-date and may potentially cause issues running the server. Please follow migration instructions from the TGS release notes. The current version is \"{currentVersion}\"",
|
||||
CurrentConfigVersion);
|
||||
else
|
||||
logger.LogWarning("Your `ConfigVersion` is out-of-date. Please follow migration instructions from the TGS release notes.");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Version>$(TgsCoreVersion)</Version>
|
||||
<IncludeOpenAPIAnalyzers>true</IncludeOpenAPIAnalyzers>
|
||||
<UseAppHost>false</UseAppHost>
|
||||
<NoWarn>API1000</NoWarn>
|
||||
<NoWarn>API1000;ASP0019</NoWarn>
|
||||
<NodeModulesFolder>ClientApp/node_modules</NodeModulesFolder>
|
||||
<NpmInstallStampFile>ClientApp/node_modules/.install-stamp</NpmInstallStampFile>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
|
||||
Reference in New Issue
Block a user