c# Exception The process cannot access the file

前端 未结 5 1614
孤独总比滥情好
孤独总比滥情好 2021-01-13 15:21

I\'m getting an exception: The process cannot access the file.

Here\'s the code:

if (!Monitor.TryEnter(lockObject))
    return;
try
{
    watcher.Ena         


        
5条回答
  •  野的像风
    2021-01-13 15:51

    Make sure the file does not exist.

    I had to recreate my build configuration and the old file still existed. Once I deleted the old transform I was able to recreate the new transform.

提交回复
热议问题