Editare il file del progetto ed aggiungere le seguenti informazioni:

<PropertyGroup>
     <DebugType Condition=" '$(Configuration)' == 'Release' ">None</DebugType>
</PropertyGroup>