1

I have created new MVC project in my existing solution.
While adding these new project to existing solution, I am getting below error.

I am using VS 2019 now. Earlier, I was using VS 2017 in which everything works fine.

These issue is occurring for all directory in project. e.g. xml/ css/jquery.
Even though we manually add those files in folder it still showing same error.

Git failed with a fatal error.

error: mvctestproject/wwwroot/lib/jquery-validation-unobtrusive/: is a directory - add files inside instead
fatal: Unable to process path mvctestproject/wwwroot/lib/jquery-validation-unobtrusive/
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Nil
  • 33
  • 4

2 Answers2

0

Check if, as it was the case here:

  • you have a process with a lock on a file in that folder
  • you can, in Team Explorer, right-click the file and select "Ignore this local resource".

The idea is Git is not able to reach a specific file in that folder.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

I had the same problem. And solved it just removing folders that dont have projects inside

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 28 '23 at 04:44