|
-
Mar 11th, 2023, 10:48 AM
#1
Thread Starter
Junior Member
Files in wrong directory.
I have a vb.net program in the file path;
I:\Developement\Movie Collection
In that directory (Movie Collection) are 3 files of the .net program;
EntryForm1.vb 12/12/22
EntryForm1.resx 12/12/22
EntryForm1.Designer.vb 12/12/22
In the ‘Development’ directory are also 3 files;
EntryForm1.vb 02/19/23
EntryForm1.resx 02/19/23
EntryForm.Designer1.vb 02/19/23
When I change the names of files in the ‘Development’ directory, by adding an ‘a’ at the beginning of the filenames and then running the Movie Collection app in the Movie Collection directory, I get the following error;
Severity Code Description Project File Line
Error Unable to create a manifest resource name for "..\EntryForm1.resx". Could not find file 'I:\Development\EntryForm1.vb'. Movie Collection
Which tells me that the vb.net app is using the files from the ‘Development’ directory and not the ‘Movie Collection’ directory where it should be.
I have tried copying the files from the ‘Development’ directory into the ‘Movie Collection’ directory, but it doesn’t make a difference. How do I move the files back into the correct directory and let the program know to look for them there instead of the ‘Development’ directory?
-
Mar 11th, 2023, 11:15 AM
#2
Re: Files in wrong directory.
For the record, text is not bold by default for a reason. Bold font should only be used to specifically add emphasis to a small amount of text. By bolding your whole post you make it harder to read and thus reduce the likelihood of getting the help you want.
-
Mar 11th, 2023, 12:07 PM
#3
Re: Files in wrong directory.
There might be a "correct" way to do this from within Visual Studio with your solution opened.
But the way I would do this would be to:
- Make a backup copy of the entire "Movie Collection" folder
- In the "Live" Movie Collection folder, open the .vbproj file in Notepad, and search for the references to those particular files.
Inside the file, you should encounter entries like:
Code:
<Compile Include="..\EntryForm1.vb">
<Compile Include="..\EntryForm1.Designer.vb">
<EmbeddedResource Include="..\EntryForm1.resx">
If they have ..\ in front of them, it means to locate the files one folder "above" the folder that the .vbproj file is in.
You'll want to remove the ..\, so that the path in quotes is simply the filename. Once you've done that for those three entries, save and close the .vbproj file.
You'll also want to copy these three "EntryForm" related files from your Development folder into your Movie Collection folder to ensure that the project will load the most current versions of these files.
Now, when you load the project, it should now point to the copies of those files inside of the "Movie Collection" folder.
Good luck.
Last edited by OptionBase1; Mar 11th, 2023 at 12:12 PM.
-
Mar 13th, 2023, 11:15 AM
#4
Thread Starter
Junior Member
Re: Files in wrong directory.
OptionBase1;
Problem solved, but I did need to restart the computer for the changes take effect. Thank you for your assistance.
darby
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|