I may have tampered with my files and now my project has no properties and all new files are excluded from my project

Nate Lamb 0 Reputation points
2025-04-02T22:15:51.6066667+00:00

So basically I'm trying to make a Game Engine using C++ and other features. During this process I had a file of my project in my file of my project so i took out the files and added them to my main project. I then deleted the now empty folder. After that all my new files had the red dot with a dash on it meaning it is excluded from my project. I went to its properties but when I made include in project true it says "access was denied for this operation". I then went to properties of my project and it now says there are none. Please let me know if there is a way to fix this without restarting.

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,148 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,311 Reputation points Microsoft External Staff
    2025-04-03T03:22:04.4433333+00:00

    Hello @Nate Lamb ,

    Please try to run VS as administrator and test again.

    If this doesn’t work, try to right-click your project => Unload Project => right-click it again => Edit Project File, then check the .vcxproj file(project file). Try to manually add code to include the files. After that right-click your project => Reload Project and rebuild the project.

     User's image

    Check other configurations in your project file, see if there are some limitations on the files, for example invalid paths, and manually correct them.

    Some other suggestions:

    1. Remove the project from your solution and add it back.
    2. Close VS and clean the project cache like the hidden .vs folder in your solution folder then rebuild the project.

    Anyways, the important things that you need to check are

    1. The project file(.vcxproj).
    2. The project cache.
    3. The missing configurations file(s) which might be deleted by mistake.

    Best regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.