使用SqlScriptEditorControl类进行sql editor-winForms

问题描述 投票:0回答:1

我需要添加到我的项目Sql编辑器(像ssms使用)。朋友告诉我使用这个类(SqlScriptEditorControl)我试图使用它,但它给了我错过dll的错误

Error   108 The type 'Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify2' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin
Error   109 The type 'Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.TextManager.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin
Error   110 The type 'Microsoft.VisualStudio.Shell.Interop.IVsStatusbarUser' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.  C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin
Error   111 The type 'Microsoft.VisualStudio.TextManager.Interop.IVsFindTarget' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.TextManager.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin
Error   112 The type 'Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.  C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin
Error   113 The type 'Microsoft.VisualStudio.Shell.Interop.IVsWindowPane' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\i5\Desktop\Finish_Project\MyProject\Sqaddin\Sqaddin\Form1.cs   19  13  Sqaddin

我在哪里可以得到这个DLL? (如果你使用这门课我会非常感谢你,如果你留下关于这个课程的usfull链接(不是这个https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.ui.vsintegration.editors.sqlscripteditorcontrol.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1

这张照片是Brien Foss的答案

that what I get,I dont know where you got the second picture

我不知道你在哪里找到第二张照片

c# sql winforms
1个回答
0
投票

这些错误似乎与您的问题无关。要获取这些程序集引用,请使用Visual Studio中的Nuget Package Manager获取它们:

然后搜索Microsoft.VisualStudio.Shell.Interop。它还应该安装那些其他依赖项。至于SqlScriptEditorControl,我不确定。如果我能找到,我会更新。

© www.soinside.com 2019 - 2024. All rights reserved.