Files have invalid value in path "<<<<<<< HEAD" RRS feed

  • Question

  • User-767136372 posted

    I am having the following errors in my VS build

    Error Files has invalid value "<<<<<<< HEAD". Illegal characters in path.

    Every time I try to Rebuild my solution or running my project it gives me this error. I tried to find where are the paths for deleting that values but I couldn't find it. I use git with bitbucket and Im sure this is something about a merge.

    Tuesday, May 15, 2018 5:43 PM

All replies

  • User932581749 posted

    Yes, it is about merging conflicts. Usually Visual Studio highlights most of the errors with file paths. However, it does miss some files.
    All you have to do is REMOVE the "obj" folder from your solution.

    If you are in Visual Studio , you have to select "Show All/Hidden files" as "obj" folder is hidden, and then delete it.

    You can also delete it by going to your directory where your project is stored e.g C:/Users/username/source/repos/project/ (can be different in your case).

    There you go, it will resolve your problem. Happy Coding ! :)

    Saturday, March 2, 2019 8:23 AM
  • User1341756031 posted

    Delete the obj folder within your project and it will fix the issue

    The obj folders are hidden in Visual Studio. You can see them with a file explorer.

    Also you try to search the entire solution for the value and remove it from where it occurs.

    Friday, March 15, 2019 5:37 AM