我正在制作突触 x 自定义 ui,但我一直收到此错误

I'm making a synapse x custom ui and I keep on getting this error

System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void System.IO.Pipes.NamedPipeServerStream..ctor(System.String, System.IO.Pipes.PipeDirection, Int32, System.IO.Pipes.PipeTransmissionMode, System.IO.Pipes.PipeOptions, Int32, Int32, System.IO.Pipes.PipeSecurity)'. Source=sxlib
StackTrace: at sxlib.Specialized.SxLibBase..() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

从 sxlib 获取这个,我不知道为什么会这样,因为它看起来像 SxLib 的错误

代码如下:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using sxlib;
using sxlib.Specialized;
using sxlib.Internal;
using System.IO.Pipes;   

namespace synsense
{
    public partial class Form1 : Form
    {
        public bool Attached;
        public bool Loaded;
        public static string Direct = Directory.GetCurrentDirectory();
        public Form1()
        {
            InitializeComponent();

            Functions.Lib = SxLib.InitializeWinForms(this, Direct);
            Functions.Lib.Load();
            Functions.Lib.LoadEvent += SynLoadEvent;
        }

        private void SynLoadEvent(SxLibBase.SynLoadEvents Event, object Param)
        {
            status.Text = Event.ToString().ToLower();
        }
    }
}

修复

如果您遇到同样的问题,请更换为 .NET Framework 4.7.2。

您需要创建一个新项目并确保它是一个 .NET Framework Forms 应用程序。