The requested operation cannot be performed on a file with a user-mapped section open

后端 未结 28 1612
深忆病人
深忆病人 2020-12-07 16:03

Whenever I tried to copy 4 files into my bin folder, after stopping the main service, I am getting an error with one file (TexteDll). The error is:

Cannot co         


        
28条回答
  •  隐瞒了意图╮
    2020-12-07 16:32

    • Sometimes when you double click on a warning about the referenced assembly version mismatch between two or more projects you forget to close the assembly view window and it stays there among other tabs... so you end up with the assembly being locked by VS itself and it took me quite a lot of time to figure that out :)

      Be careful with the power VS provides ;)

    • Another dummy scenario. Sometimes simply deleting the whole obj folder or just the file warned as the locked one helps out with this crappy error.

提交回复
热议问题