runtime code compilation gives error - process cannot access the file
问题 I hava small windows app where user enter code and on button click event code is compiled at runtime. When i click button 1st time it works fine but if click same button more than once it gives error "The process cannot access the Exmaple.pdb file because it is being used by another process." . Below is the example sample code using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Microsoft.CSharp; using System.CodeDom.Compiler; using System