通过 Visual Studio 中的 Publish 命令(在本例中为 2014)使用 IIS WebDeploy 发布 Web 应用程序时,将上传除主要程序集 PDB 文件之外的所有文件。
web.config 有 debug=false
放。相关的构建配置设置了 pdb-only,并且发布配置文件设置为发出调试信息。
为什么没有上传 pdb 文件?
相当令人困惑的是,包含已编译 MVC View 的 pdb 文件,而不是任何实际使用的程序集的 pdb。
Adding file (domain\bin\App_Web_x13lezpq.pdb). // A MVC Compiled View Updating file (domain\bin\MyWebApplication.dll). // The main DLL has no PDB uploaded, although one is generated in the bin folder anyway.
最佳答案
解决了,还有第三个地方可以设置 pdb 设置 - 确保未选中“排除生成的调试符号”复选框。
关于asp.net-mvc - WebDeploy 发布不上传 PDB 文件(MVC 预编译 webapp,VS2013),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25609393/