2012-06-21 58 views
-1

我想创建一个新的库(.dll)用于我的SSIS项目。我没有任何创建这类项目的经验。所以请耐心等待。vb.net程序调试错误

当我尝试调试程序时,它抛出以下错误 enter image description here

什么是调试下面的代码的最佳方式。我知道这可能是错的,但我正在努力学习。

Imports Microsoft.SqlServer.Dts.Runtime 
Imports Microsoft.SqlServer.Server 
Imports System.IO 
Imports System 
Imports System.Net 

'Imports Microsoft.SqlServer.Dts.Runtime 
'Imports System.Net.NetworkInformation 
'Imports System.Text.RegularExpressions 
'Imports System.IO 
'Imports System.Net.Mail 
'Imports System.Net 

Public Class Logging 
    Inherits LogProviderBase 

End Class 

感谢您的帮助。

+0

你得到了什么错误? – Trevor

+0

我发布的截图是我得到的错误。 – rvphx

回答

2

你不能只打F5和运行一个DLL库。它只能用于其他应用程序。你可以建立这个项目,它会告诉你是否有任何明显的错误。

大多数人都有一个测试应用程序,在那里练习类库应用程序给他们一个想法,如果有任何问题。

类似问题:"A project with an Output type of Class Library cannot be started directly"

+0

就他而言,您需要在该解决方案中创建另一个项目并添加对其的引用并导入您想要使用的名称空间。然后你可以测试你的库中的东西。 – Yatrix

+0

好信息:感谢您加入Yatrix –