部署PDBS上Azure的Web角色 [英] Deploy PDBs on an Azure Web Role
问题描述
我有一个是通过VS 2012 Azure项目(在VS手动从权利,而不是)部署一个项目。 Web角色项目设置为打造PDB-只有调试信息发布模式,但是在部署的时候PDBS未打包并复制到Azure上的Web角色虚拟机。我如何获得PDBS得到包中包含并传输到服务器?
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?
我想包括我生产PDBS的原因是因为我想获得行号在我的报告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-仅
- Web项目 - >属性 - >封装/发布网站 - >取消选中排除生成调试符号
- Web Project -> Properties -> Build -> Advanced -> Debug Info: pdb-only
- Web Project -> Properties -> Package/Publish Web -> Uncheck Exclude generated debug symbols
当我编译和使用这些设置2部署碱性溶液中,我发现 WebRole1.dll
和 WebRole1.pdb
在 F:\\为approot \\ BIN \\
文件夹中。
When I compiled and deployed a basic solution using these 2 settings, I found WebRole1.dll
and WebRole1.pdb
in the F:\AppRoot\Bin\
folder.
这是你要找的是什么?
这篇关于部署PDBS上Azure的Web角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!