I use WebDepolymentAdd for VS 2008 to do the final build of my web site. This is web site and not web application project.
我使用WebDepolymentAdd for VS 2008来完成我的网站的最终构建。这是网站,而不是Web应用程序项目。
I set the build to Release and not debug and after i did the build. In the bin folder it contain .pdb and .xml for third party .dll for example the AJAXcontrol and also .compiled file. Do i need to include those files for final release? How do i get rid of them?
我将构建设置为Release而不是调试,之后我进行了构建。在bin文件夹中,它包含.pdb和.xml,用于第三方.dll,例如AJAXcontrol和.compiled文件。我是否需要将这些文件包含在最终版本中?我该如何摆脱它们?
I also notice it created PrecompiledApp.config too. Is that file require?
我也注意到它也创建了PrecompiledApp.config。该文件是否需要?
Thank
Jack
3 个解决方案
#1
You don't need to include the .pdb files for the final release, but there are some benefits in doing so, such as being able to debug the live site with symbols.
您不需要为最终版本包含.pdb文件,但这样做有一些好处,例如能够使用符号调试实时站点。
This article shows how to turn this on/off.
本文介绍如何打开/关闭此功能。
#2
The .pdb file is just the symbol file. On a Release build it's not all the useful because you will most likely have debug set to false. The xml file is most likely the xml comments from the code in the assembly, again not needed normally.
.pdb文件只是符号文件。在发布版本中,它并非全部有用,因为您很可能将调试设置为false。 xml文件很可能是程序集中代码的xml注释,通常也不需要。
#3
If you publish your web site (even to a spare directory in your filesystem) you can tell VS to only copy the files that you actually need to run your app.
如果您发布您的网站(甚至是文件系统中的备用目录),您可以告诉VS仅复制您实际运行应用程序所需的文件。
#1
You don't need to include the .pdb files for the final release, but there are some benefits in doing so, such as being able to debug the live site with symbols.
您不需要为最终版本包含.pdb文件,但这样做有一些好处,例如能够使用符号调试实时站点。
This article shows how to turn this on/off.
本文介绍如何打开/关闭此功能。
#2
The .pdb file is just the symbol file. On a Release build it's not all the useful because you will most likely have debug set to false. The xml file is most likely the xml comments from the code in the assembly, again not needed normally.
.pdb文件只是符号文件。在发布版本中,它并非全部有用,因为您很可能将调试设置为false。 xml文件很可能是程序集中代码的xml注释,通常也不需要。
#3
If you publish your web site (even to a spare directory in your filesystem) you can tell VS to only copy the files that you actually need to run your app.
如果您发布您的网站(甚至是文件系统中的备用目录),您可以告诉VS仅复制您实际运行应用程序所需的文件。