在发布中部署PDB文件 [英] Deploying PDB Files in Release

查看:315
本文介绍了在发布中部署PDB文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的CI服务器设置来构建和部署我的所有环境,包括我的生产环境。从我可以告诉我的所有项目文件和CI设置的设置是相同的,在我的Staging环境构建和我的生产环境构建之间。但是当我部署到生产,没有PDB文件坐在DLL文件,就像在分期。下面是部署每个应用程序的脚本:

I have my CI server setup to build and deploy all of my environments including my production environment. From what I can tell my setup for all of my project files and CI settings are the same between my Staging environment build and my Production environment build. But when I deploy to production there are no PDB files sitting alongside the DLL files like there are in staging. Here is the script that deploys each application:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe %location% ^
    /p:Configuration=%configName% ^
    /p:DeployOnBuild=True ^
    /p:DeployTarget=MSDeployPublish ^
    /p:AllowUntrustedCertificate=True ^
    /p:MSDeployPublishMethod=WMSvc ^
    /p:CreatePackageOnPublish=True ^
    /p:MsDeployServiceUrl=https://%serverName%:8172/MsDeploy.axd ^
    /p:DeployIisAppPath=%siteName% ^
    /p:UserName=%username% ^
    /p:Password=%password%

所以看起来当配置=释放PDB文件被遗留,虽然他们是生成在构建服务器上。任何想法?

So it seems like when the Configuration=Release the PDB files are left behind, though they are getting generated on the build server. Any ideas?

推荐答案

如果要包含pdb文件与发布,请去项目属性和包/ ,取消选中排除生成的调试符号

If you want to include the pdb files with the publish, go the project properties and Package/Publish Web Tab, Uncheck the "Exclude Generated Debug Symbols"

这篇关于在发布中部署PDB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆