I have created a web API in .net framework 6, when I build a project after changes, it generates a .dll file and .pdb file every time under C:\Users\User\Downloads\Demo.Api\Demo.Api\bin\Debug\net6.0
I have created a web API in .net framework 6, when I build a project after changes, it generates a .dll file and .pdb file every time under C:\Users\User\Downloads\Demo.Api\Demo.Api\bin\Debug\net6.0
Here is a Summary from MS Docs:
Why create a .pdb file
Program database (.pdb) files, also called symbol files, map identifiers and statements in your project's source code to corresponding identifiers and instructions in compiled apps. These mapping files link the debugger to your source code, which enables debugging.
More details you can refer to Docs,.NET's Portable PDB format