使用TFS2013和VS2013,我尝试修改功能CI构建定义,以允许使用this tutorial远程调试Azure应用程序。我已成功完成所有步骤,但在Build Agent上收到了一个神秘的依赖错误:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.4\Microsoft.WindowsAzure.targets (985): CloudServices61 :
Cannot find module named 'RemoteDebuggerConnector' at obj\Debug\RemoteDebuggerConnector\RemoteDebuggerConnector.csplugin.
据我所知,已经安装了所有依赖项(Windows Azure工具已安装并存在于该目录中)。我传入的MSBuild标志如下:
/t:Publish /p:BuildServer=True /p:PublishDir=\\my-hostname\drops\
/p:Configuration=Debug;EnableRemoteDebugger=true;VSX64RemoteDebuggerPath="<correct_path>";RemoteDebuggerConnectorCertificateThumbprint="<thumbprint>";RemoteDebuggerConnectorVersion="2.4"
我省略了指令所要求的MSBuild定义的最后部分:我没有指定.sln文件,因为我提供了一个.cspkg和.cscfg文件用于发布。是否需要指定sln文件?
关于我的系统配置错误的其他想法?
答案 0 :(得分:2)
我有完全相同的错误,在仔细查看Microsoft.WindowsAzure.targets然后再查看Microsoft.WindowsAzure.RemoteDebugger.targets文件之后,它看起来像是Microsoft.WindowsAzure.targets中为Windows指定的注册表路径如果构建服务器是64位,则Azure工具不正确。
要修复它,我导出了注册表项HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows Azure Tools for Microsoft Visual Studio \ 11.0 \ 2.3,然后编辑并导入回HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows Azure Tools for Microsoft Visual Studio \ 11.0 \ 2.3
在Microsoft.WindowsAzure.targets中查看此行: $(注册表:HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows Azure Tools for Microsoft Visual Studio \ 11.0 \ 2.3@InstallPath)
这一行在Microsoft.WindowsAzure.RemoteDebugger.targets中: $(CloudToolsInstallPath)RemoteDebuggerConnector \
在此之后所有必需的文件在中间路径中进行打包(即obj \ Debug)
答案 1 :(得分:1)
对于遇到相同问题的任何人,您还可以在build命令中指定远程调试连接器的路径。
对我而言:
RemoteDebuggerConnectorPath="C:\Program Files (x86)\Microsoft Azure Tools\Visual Studio 14.0\2.7\RemoteDebuggerConnector\\"