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:
@ -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
|
||||
|
Reference in New Issue
Block a user