Visual Studio 2015 Preview - Cannot Be Done With Git

I am unable to migrate my projects from Visual Studio 2015 Preview.

When I click a button Commit

in the Team Explorer window, I get this error message:

enter image description here

Last sentence in English: The process cannot access the file because it is being used by another process.

I couldn't find if any other process is actually using the file specified.

Everything works fine in Visual Studio 2013. So I actually switch between VS2015 and VS2013 every time I need to commit some changes made to the project, but this is a real waste of time.

+3


source to share


2 answers


I had the same exception. I saw that VS2015 create a new folder next to the file with the same name solutions, such as: <solutionname>.sln.ide

. I have no idea what this folder is good for, but you should find the mentioned file that is locked by another process there.



Since I didn't want to have new files in my repository while I am working with VS2013, I added the folder path to my .gitignore file. Then I could commit again.

+3


source


Thanks to Frederick, I was able to find a good solution. I'm new to git so I didn't know about using .gitignore files.

Just go to Team Explorer

Repositories Settings

. In the section, Ignore File

click Add .

enter image description here



This will add the default .gitignore file.

After that, I never saw the error message again.

0


source







All Articles