From 1fb74346bd3d80f06ed58eb3f5f86f1d2a39a427 Mon Sep 17 00:00:00 2001 From: Archi Date: Thu, 20 Apr 2023 22:56:49 +0200 Subject: [PATCH] Make IWebInterface work on netf --- ArchiSteamFarm/IPC/Startup.cs | 2 -- ArchiSteamFarm/Plugins/Interfaces/IWebInterface.cs | 2 -- Directory.Packages.props | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ArchiSteamFarm/IPC/Startup.cs b/ArchiSteamFarm/IPC/Startup.cs index c608c1cf9..34bad9059 100644 --- a/ArchiSteamFarm/IPC/Startup.cs +++ b/ArchiSteamFarm/IPC/Startup.cs @@ -101,7 +101,6 @@ internal sealed class Startup { // Add support for default root path redirection (GET / -> GET /index.html), must come before static files app.UseDefaultFiles(); -#if !NETFRAMEWORK && !NETSTANDARD Dictionary pluginPaths = new(StringComparer.Ordinal); if (PluginsCore.ActivePlugins?.Count > 0) { @@ -139,7 +138,6 @@ internal sealed class Startup { } ); } -#endif // Add support for static files (e.g. HTML, CSS and JS from IPC GUI) app.UseStaticFiles( diff --git a/ArchiSteamFarm/Plugins/Interfaces/IWebInterface.cs b/ArchiSteamFarm/Plugins/Interfaces/IWebInterface.cs index 1a9154149..a7592bee2 100644 --- a/ArchiSteamFarm/Plugins/Interfaces/IWebInterface.cs +++ b/ArchiSteamFarm/Plugins/Interfaces/IWebInterface.cs @@ -23,7 +23,6 @@ using Newtonsoft.Json; namespace ArchiSteamFarm.Plugins.Interfaces; -#if !NETFRAMEWORK && !NETSTANDARD public interface IWebInterface : IPlugin { /// /// Specifies physical path to static WWW files provided by the plugin. Can be either relative to plugin's assembly location, or absolute. Default "www" value assumes that you ship "www" directory together with your plugin's main DLL assembly, similar to ASF. @@ -36,4 +35,3 @@ public interface IWebInterface : IPlugin { [JsonProperty] string WebPath => "/"; } -#endif diff --git a/Directory.Packages.props b/Directory.Packages.props index 1e409a879..91e0aca70 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -27,7 +27,7 @@ - +