Powershell Add-Type suppress creation of .pdb when compiling .dll (C#)
问题 I am creating a C# hello world DLL and compiling it with the built-in powershell Add-Type command. When doing so, it creates an unwanted .pdb debug file in the directory with the .dll. How do I suppress creation of this .pdb file when using Add-Type command. I know in Visual studio we can disable that via an option, but cannot seem to find a proper cmd line syntax. Here is the example powershell code. Run from console and it will create the DLL on C:\ along with the .pdb Clear-Host Add-Type