Unable to delete files in .NET API publishing

Viewed 1066

I'm stuck during publishing the API. issue is when i check the deleting all existing files prior to publish. then API Build successful but error in publish the API which is

Deleting existing files... Error deleting file 'JSONWebAPI'. Unable to delete 'JSONWebAPI'. The process cannot access the file because it is being used by another process. Publish failed. Target : C:\\xxxxx\xxx\xxxx

enter image description here

if i unchecked that option "Deleting all existing files prior to publish" then published successful.. but what should i do for deleting all existing files prior to publish.

0 Answers
Related