Winforms application on Rider gives the error: 'Could not load file or assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral...'

Winforms application on Rider gives the error: 'Could not load file or assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral...'

我正在尝试切换到 Rider IDE。我通常在 Visual Studio 上处理 WinForms 应用程序。现在,我无法在 Rider 上加载我的旧应用程序,并且出现错误。 有办法解决这个问题吗?

错误信息是:

System.IO.FileNotFoundException: Could not load file or assembly 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at DevExpress.Utils.Design.ProjectHelper.AddReference(IServiceProvider provider, String assembly) at DevExpress.DataAccess.Design.VSSqlDataSourceDesigner.Initialize(IComponent component) at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo) at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name) at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement) at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject) at JetBrains.ReSharper.Features.WinForms.Designer.External.Serialization.JetProjectResourceComponentCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

找到程序集 EnvDTE.dll 并将其安装在全局程序集缓存中或在 Visual Studio 项目中引用它。