Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vbcs.cache/edb.log locked by Visual Studio 2015

when i try to commit (and push) code to visual studio online i get an error.

An error occurred. Detailed message: Could not open 'P:/.../Solution/.../.vs/.../vbcs.cache/edb.log': The process cannot access the file because it is being used by another process.

i've verified that the file is locked but ONLY while the visual studio is running, which means the visual studio itself locks it.

i'm using a preview of visual studio 2015 in a microsoft provided azure virtual machine.

how to fix this error?

restarting vm does not help.

like image 506
b0x0rz Avatar asked Feb 24 '15 18:02

b0x0rz


1 Answers

For Git users edit your .gitignore file enter "/.vs". This will ignore the folder with the locked file.

I have not tested it but adding this into the ignore file for another source control system (TFS, mercurial etc) should solve the issue.

like image 118
Royston46 Avatar answered Nov 17 '22 18:11

Royston46