命令行自动化问题-VS2005团队版
我正在尝试通过使用 VB.NEt 编写的插件来自动化 VC++ 构建,以便我们可以使用简单的批处理文件来安排它。 该插件在构建开始之前执行一些自定义先决条件。 构建被调用为...
devenv.com /useenv %NEWSOLFILE% /CLEAN %BUILDCONFIG% /OUT %OUTLOGFILE% > nul
并进行适当的文件名替换。 我在以下入口点遇到问题:-
Public Sub OnConnection(ByVal application As Object, ByVal connectMode As ext_ConnectMode, ByVal addInInst As Object, ByRef custom As Array) Implements IDTExtensibility2.OnConnection
If connectMode = ext_ConnectMode.ext_cm_CommandLine Then
' this is always false why??
End If
End Sub
尽管我们从命令行调用构建,但这里“connectMode”从未被标记为“ext_ConnectMode.ext_cm_CommandLine”。 这是另一个令人讨厌的 MS 错误吗?
以前有人遇到过这个吗? 我需要向 VS 2005 应用任何补丁来解决此问题吗? 或者有什么简单的解决方法吗?
提前致谢,
I am trying to automate VC++ build via an addIn written using VB.NEt so that we can schedule it using a simple batch file. This addin performs some custom pre-requisites before the build is started. The build is invoked as ...
devenv.com /useenv %NEWSOLFILE% /CLEAN %BUILDCONFIG% /OUT %OUTLOGFILE% > nul
with appropriate filename substitutions. I am facing problem in the following entry-point:-
Public Sub OnConnection(ByVal application As Object, ByVal connectMode As ext_ConnectMode, ByVal addInInst As Object, ByRef custom As Array) Implements IDTExtensibility2.OnConnection
If connectMode = ext_ConnectMode.ext_cm_CommandLine Then
' this is always false why??
End If
End Sub
Here the 'connectMode' is never signalled as 'ext_ConnectMode.ext_cm_CommandLine' though we invoke the build from command line. Is this another nasty MS bug?
Anyone encountered this before? Are there any patches that i need to apply to VS 2005 to fix this? Or are there any simple workarounds?
Thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我在互联网上找到了这个 VS 命令行框架的挫败感
这是一个 MS Visual Studio 错误。 此外,还为那些不愿意升级/修补的人概述了解决方法。
Well, i found this on the Internet Frustrations with VS command-line framework
Its a MS Visual Studio bug. Also, a workaround has been outlined for the ones not willing to upgrade / patch.