1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

support hot reload of plugin code in debug configuration

This commit is contained in:
RaidMax
2024-08-27 10:10:58 -05:00
parent ac9c26817d
commit e956ab4d1a
6 changed files with 88 additions and 6 deletions

View File

@ -38,6 +38,9 @@ using ILogger = Microsoft.Extensions.Logging.ILogger;
using IW4MAdmin.Plugins.Stats.Client.Abstractions;
using IW4MAdmin.Plugins.Stats.Client;
using Microsoft.Extensions.Hosting;
#if DEBUG
using PluginDebugReference;
#endif
using Refit;
using SharedLibraryCore.Interfaces.Events;
using Stats.Client.Abstractions;
@ -129,6 +132,10 @@ namespace IW4MAdmin.Application
Utilities.DefaultLogger = logger;
logger.LogInformation("Begin IW4MAdmin startup. Version is {Version}", Version);
#if DEBUG
StrongReferencesLoader.Load();
#endif
try
{
// do any needed housekeeping file/folder migrations