title: Visual Studio publish generates .pdb file despite using DebugType=None
body: <p>I'm publishing a console app from within Visual Studio using the following publish profile:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;!--
  https://go.microsoft.com/fwlink/?LinkID=208121. 
  --&gt;
  &lt;Project ToolsVersion=&quot;4.0&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
    &lt;PropertyGroup&gt;
      &lt;PublishProtocol&gt;FileSystem&lt;/PublishProtocol&gt;
      &lt;Configuration&gt;Release&lt;/Configuration&gt;
      &lt;Platform&gt;x64&lt;/Platform&gt;
      &lt;TargetFramework&gt;netcoreapp5.0&lt;/TargetFramework&gt;
      &lt;PublishDir&gt;bin\Release\netcoreapp5.0\publish\&lt;/PublishDir&gt;
      &lt;RuntimeIdentifier&gt;win10-x64&lt;/RuntimeIdentifier&gt;
      &lt;SelfContained&gt;False&lt;/SelfContained&gt;
      &lt;PublishSingleFile&gt;True&lt;/PublishSingleFile&gt;
      &lt;PublishReadyToRun&gt;True&lt;/PublishReadyToRun&gt;
      &lt;IncludeNativeLibrariesForSelfExtract&gt;True&lt;/IncludeNativeLibrariesForSelfExtract&gt;
  
      &lt;DebugType&gt;none&lt;/DebugType&gt;
      &lt;DebugSymbols&gt;false&lt;/DebugSymbols&gt;
    &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  <p>My goal is to not emit any .pdb files (debug symbols) in the publish output folder.<br />
  This doesn't completely work as intended.</p>
  <p>The .pdb file of the console app project is not generated - as expected, but the debug symbols for the business logic project it references is for some reason generated. Is this a bug?</p>
  <p>I can hack this by adding a conditional statement to the project file of the business logic library, but that it something I'd like to avoid as I think all the relevant information for publishing the app should reside in the publish profile.</p>
  <pre><code>&lt;PropertyGroup Condition=&quot;'$(Configuration)|$(Platform)'=='Release|AnyCPU'&quot;&gt;
     &lt;DebugType&gt;none&lt;/DebugType&gt;
     &lt;DebugSymbols&gt;false&lt;/DebugSymbols&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>