Pdb files appear in website publish folder

I have an asp.net site that when publishing using assembly> publish a website in VS2010 and even when checking exclude the debug option in the website publish window, the published folder still contains pdb files, is there any way to avoid this behavior?

+6
source share
5 answers

PDB files will be in your last build under debugging. Check the properties to see when they have been changed or deleted to see if they will return.

+4
source

Publish Online Dialog Box Information Text:

"/ " "/ SQL" .

, PDB, :

  • PDB , . ( ).
  • → / Web.
  • , Exclude generated debug symbols .

, , PDB .

+24

- pubxml ( Properties/PublishProfiles -).

bin\**\*.pdb (** , bin pdb) node ExcludeFilesFromDeployment.

pubxml :

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <!-- ... -->
    <WebPublishMethod>FileSystem</WebPublishMethod>
    <ExcludeFilesFromDeployment>bin\**\*.pdb</ExcludeFilesFromDeployment>
  </PropertyGroup>
</Project>
+5

:

, .

" ". , Emit .

0

, PDB : , Visual Studio 2017 Community:

enter image description here

0
source

All Articles