Is it safe to delete the obj folder under Debug?
It's safe to delete the obj folder under the Debug directory. The obj
folder is used to store build files such as compiled assemblies, generated files, and metadata. Deleting it will not harm your project, because the folder will be generated again once we rebuild the application. Deleting obj
and bin
folder is a good approach when we faced an issue similar to: I have a project which working in my computer, but I copy and paste my project into a new computer it gave me complied error.
The error message you shared contained The file is locked by: "EXCEL.EXE (19948)" IMS.CoreBusiness
which looks like you were trying to delete the obj
folder but failed. Maybe you can restart the application which can make sure this folder is not in use. You can certainly try to find "EXCEL.EXE(19948)" in task manager and then stop it.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Tiny