【发布时间】:2011-08-19 10:33:26
【问题描述】:
我正在尝试在 VB.Net 中制作一个非常基本的服务器控件,并且正在通过我自己的 bloody awful walkthrough 版本进行工作。
我已经到了这一点(刚刚超过页面的一半)......
将控件编译成程序集并嵌入图标
1) 打开 Visual Studio 命令提示符窗口。了解更多信息, 请参阅使用 csc.exe 构建命令行。
2) 在命令行,切换到包含自定义的目录 控制类文件。
如何在命令提示符窗口中“切换到目录”?
对于我可能遇到的问题的任何其他有先见之明的建议也非常受欢迎! :D
更新
我现在在 Visual Studio Command Prompt 独立应用程序中,并且有过这样的讨论...
C:\Program Files\Microsoft Visual Studio 9.0\VC>vbc "D:\data\oconndr\ASP Custom
Controls\CustomControls\CustomTreeView.vb" /t:library /out:CustomTree.dll /r:Sy
stem.dll /r:System.Web.dll
Microsoft (R) Visual Basic Compiler version 9.0.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Program Files\Microsoft Visual Studio 9.0\VC>
正如你所见,它没有给我任何迹象表明它已经构建了一个 dll(可能是因为它没有)。
如何将CustomTreeView.vb 编译为 dll??
更新
对于任何处于类似位置的可怜的不幸者,我最终会这样做......
vbc /target:library /out:"D:\data\oconndr\ASP Custom Controls\CustomControls\CustomTree.dll" "D:\data\oconndr\ASP Custom Controls\CustomControls\CustomTreeView.vb"
即
vbc /target:library /out:"<Target dll Path>" "<vb file path>"
【问题讨论】:
标签: visual-studio-2008 dll custom-server-controls