By Greg McGuffey - 12/6/2006
This isn't huge, it doesn't seem to have affected how the app runs, but I did a bit of reorganizing. I added a folder, moved my BOs into it. Most of the BO look fine, but 2 or 3 now have their designer files just in the main list, not under the main BO file. I.e. (FirstBO is as expected, SecondBO is not right, ThirdBO shows that the resx if fine, just the designer is whacked)
FirstBO.vb
FirstBO.Designer.vb
SecondBO.Designer.vb
SecondBO.vb
ThirdBO.Designer.vb
ThirdBO.vb
ThirdBO.resx
I've tried refreshing in Solution Explorer and I've tried restarting VS. Any ideas?
|
By Greg McGuffey - 12/6/2006
I found the solution. I remembered about project files, found the vbproj file, and the problem files where all missing the tag. I fixed it and viola its looking good again.
|
By Greg McGuffey - 12/6/2006
I guess i removed the tag name... DependentUpon was missing
|
By StrataFrame Team - 12/7/2006
Yes, sometimes, if you move one of the files, and not both of them (generally, if you move the designer file first...) it will separate them and remove that DependentUpon attribute from the XML .vbproj file. By the same token, if you ever need to split a class into more than just 2 files, say MyClass.vb, MyClass.Interfaces.vb, MyClass.Events.vb, MyClass.Designer.vb, etc, you can manually modify the .vbproj file and add the DependentUpon attribute to all of them and they will all show up under the MyClass.vb file. Make organizing much nicer.
|
By Greg McGuffey - 12/7/2006
Thanks for the info. I was moving by just grabing the collapsed main files. Sounds like if I expand the files I want to move and then move them together I might have less tweaking of the vbproj file. I'm sure I'll be using your suggestion for organizing interfaces, events, etc. soon too
|
|