Make IWebInterface work on netf

This commit is contained in:
Archi
2023-04-20 22:56:49 +02:00
parent b9fd3d0433
commit 1fb74346bd
3 changed files with 1 additions and 5 deletions

View File

@@ -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<string, string> 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(

View File

@@ -23,7 +23,6 @@ using Newtonsoft.Json;
namespace ArchiSteamFarm.Plugins.Interfaces;
#if !NETFRAMEWORK && !NETSTANDARD
public interface IWebInterface : IPlugin {
/// <summary>
/// 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

View File

@@ -27,7 +27,7 @@
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net481' OR '$(TargetFramework)' == 'netstandard2.1'">
<PackageVersion Include="JustArchiNET.Madness" Version="3.11.0" />
<PackageVersion Include="JustArchiNET.Madness" Version="3.12.0" />
<PackageVersion Include="Microsoft.AspNetCore.Cors" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.HttpOverrides" Version="2.2.0" />