question

babluplanet-4009 avatar image
0 Votes"
babluplanet-4009 asked babluplanet-4009 edited

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



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.


vs-generaldotnet-visual-basicvs-setup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @babluplanet-4009 ,

I also copied them in a separate folder to keep them from changing the new adress appears now for those files.

Could you provide some screenshots to help us analyze and reproduce the problem?
We are waiting for your update.

0 Votes 0 ·

1 Answer

AddWebSolution-0525 avatar image
0 Votes"
AddWebSolution-0525 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.