简体   繁体   English

在Azure Web角色上部署PDB

[英]Deploy PDBs on an Azure Web Role

I have a project that is deployed via a VS 2012 Azure Project (from right in VS, not manually). 我有一个通过VS 2012 Azure项目部署的项目(从VS的右侧,而不是手动)。 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. Web角色项目设置为在发布模式下构建“仅pdb”调试信息,但是部署PDB时未打包并复制到Azure上的Web角色VM。 How do I get the PDBs to get included in the package and transmitted to the server? 如何让PDB包含在包中并传输到服务器?

The reason I want to include my PDBs in production is because I want to get line numbers in my ELMAH reports. 我想在生产中包含我的PDB的原因是因为我想在我的ELMAH报告中获取行号。

I tried this out with a basic "File, New Cloud project" with the following settings: 我尝试了一个基本的“文件,新云项目”,其中包含以下设置:

  1. Web Project -> Properties -> Build -> Advanced -> Debug Info: pdb-only Web项目 - >属性 - >构建 - >高级 - >调试信息: 仅限pdb
  2. Web Project -> Properties -> Package/Publish Web -> Uncheck Exclude generated debug symbols Web项目 - >属性 - >打包/发布Web - >取消选中排除生成的调试符号

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. 当我使用这两个设置编译和部署基本解决方案时,我在F:\\AppRoot\\Bin\\文件夹中找到了WebRole1.dllWebRole1.pdb

Is this what you were looking for? 这是你在找什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM