在 Azure Web 角色上部署 PDB [英] Deploy PDBs on an Azure Web Role
问题描述
我有一个通过 VS 2012 Azure 项目部署的项目(在 VS 中,而不是手动部署).Web 角色项目设置为在发布模式下构建仅 pdb"调试信息,但在部署 PDB 时不会打包并复制到 Azure 上的 Web 角色 VM.如何让 PDB 包含在包中并传输到服务器?
I have a project that is deployed via a VS 2012 Azure Project (from right in VS, not manually). The web role project is set to build "pdb-only" Debug Info in release mode, but when deploying the PDBs are not packaged and copied to the web role VM on Azure. How do I get the PDBs to get included in the package and transmitted to the server?
我想在生产中包含我的 PDB 的原因是因为我想在我的 ELMAH 报告中获得行号.
The reason I want to include my PDBs in production is because I want to get line numbers in my ELMAH reports.
推荐答案
我在一个基本的文件,新云项目"中进行了尝试,设置如下:
I tried this out with a basic "File, New Cloud project" with the following settings:
- Web 项目 -> 属性 -> 构建 -> 高级 -> 调试信息:pdb-only
- Web 项目 -> 属性 -> 打包/发布 Web -> 取消选中 排除生成的调试符号
当我使用这 2 个设置编译和部署基本解决方案时,我在 F:AppRootBin 中找到了
WebRole1.dll
和 WebRole1.pdb
文件夹.
When I compiled and deployed a basic solution using these 2 settings, I found WebRole1.dll
and WebRole1.pdb
in the F:AppRootBin
folder.
这是您要找的吗?
这篇关于在 Azure Web 角色上部署 PDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!