-
BUG可复现 | Bug is reproducible
插件最新 | Plugin is up-to-date
插件名字 | Plugin Name任何插件 TShock版本 | TShock Version5.2.4 系统 | SystemWindows 发生了什么? | What happened?我在5.2.4的tshock添加插件时出现报错,起初只以为是插件安装的位置不对,后查验安装路径并无错误,经过测试不同的插件,还有日志的报错确定:无论添加任何插件都会出现报错,日志大致如下: 我换了不同的插件,都是这同一个报错 如何复现 | How to reproduce我在5.2.4的tshock添加插件时出现报错,起初只以为是插件安装的位置不对,后查验安装路径并无错误,经过测试不同的插件,还有日志的报错确定:无论添加任何插件都会出现报错,日志大致如下: 我换了不同的插件,都是这同一个报错 期望的结果? | Expected result?如果是bug希望能修复,如果是我的操作不当导致请纠正 文本日志 | Text log[07/28/25 21:41:44] [Server API] Error: Startup aborted due to an exception in the Server API initialization:
System.InvalidOperationException: Failed to load assembly "AutoPluginManager.dll".
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 系统找不到指定的文件。
File name: 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Reflection.RuntimeAssembly.GetExportedTypes() in System.Private.CoreLib.dll:token 0x600534f+0xb
at TerrariaApi.Server.ServerApi.LoadPlugins() in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs:line 378
--- End of inner exception stack trace ---
at TerrariaApi.Server.ServerApi.LoadPlugins() in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs:line 423
at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game) in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs:line 127
at TerrariaApi.Server.HookManager.InitialiseAPI() in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/HookManager.cs:line 29控制台日志 | Console log |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
你安装的插件是.net9的插件,但是TShock5.2.4是.net6,TShock5.9.9(TS6)以上才为.net9版本 |
Beta Was this translation helpful? Give feedback.
-
|
可以在https://github.com/Pryaxis/TShock/actions/runs/15702294958 下载TS 599 |
Beta Was this translation helpful? Give feedback.

你安装的插件是.net9的插件,但是TShock5.2.4是.net6,TShock5.9.9(TS6)以上才为.net9版本
大部分插件可以向下兼容(所有要数据库的无法向下兼容,自动升级插件无法将插件从.net6升级到.net9),你只需要安装.net9的桌面运行时,https://dotnet.microsoft.com/zh-cn/download/dotnet/9.0