Changing the file path of a .vb file inside a solution-something wired

babluplanet 21 Reputation points
2021-06-10T10:48:48.9+00:00

I need help for this! some of the major .vb files inside my program got different path. Although they are in the same folder as the solution, but since I also copied them in a separate folder to keep them from changing the new adress appears now for those files. When I open the .sln file in Visual studio 2015, I get this [failure] Could not find file 'file path' for those specific .vb files. When I write click on them in the list of .vb files under the Solution Explorer to check the property, I saw the new path appears under Misc part. Now i wonder how can I change that path so those files will basicallty added to the same path as the main .sln file.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,603 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,568 questions
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.
963 questions
{count} votes

Accepted answer
  1. AddWebSolution 161 Reputation points
    2021-06-11T07:17:28.85+00:00

    Do this following steps :-
    1)Go to the file which appears as Miscellaneous Files inside Solution Explorer.
    2)Right-Click file and select Exclude from project.
    3)Right-Click your project/folder where the file was and click add Existing Item, and add the file you just removed back into your project

    0 comments No comments

0 additional answers

Sort by: Most helpful