Links to Files in VS2022

Jeff Gaines 71 Reputation points
2022-08-10T09:20:53.56+00:00

I did ask this as part of another question some time ago but never got to the bottom of it so I will ask it specifically here.

I have just moved from VS2008 to VS2022, quite a jump especially as I moved from Win 8.1 to Win 10 at the same time. I am working through converting my projects to VS2022 and have an issue with linking to files.

I have a library of projects which contain common classes, controls etc. I usually link directly to the class file and NOT to a dll, mainly because it is much easier to debug and I usually find I need to change/add something.

If we take a control produced in VS2008 it will have 3 files:

JCustomMenuDropDown.cs
JCustomMenuDropDown.Designer.cs
JCustomMenuDropDown.resx

In VS2008 I would create a link to JCustomMenuDropDown.cs by right clicking in VS2008 and selecting Add -> Existing item and this would automatically link to all three files.

In VS2022 I do the same thing but it only links to the first file.

At the moment I am linking to all three files but it seems to cause duplication (I am hoping to attach a couple of screen shots) although it builds OK. I can't seem to add a screenshot but what is happening is VS2022 is showing a link to the same file more than once.

Is this new behaviour working as designed or is it a case of "Houston, I have a problem?".

Many thanks.

Developer technologies | Visual Studio | Other
{count} votes

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.