Cannot find path specified when trying to add existing embedded resource in Visual Studio 2022

16 Views Asked by At

I have a C# Solution in Visual studio where one of the projects is the UI version of the software and the other project is the commandline version. Both versions require some xml definitions. I've added an embedded xml to the UI version but when I go to add the file to the commandline version, it throws an error saying it can't find the path specified.

enter image description here

The Solution explorer looks like . . .

enter image description here

enter image description here

I'm trying to add the hg5700.xml to the other project.

The file does exist as I've added it to the UI project.

I'm not that savvy with the various Visual Studio icons. Does the open folder vs the closed folder give any clue? How about the different icons on the embedded files? I'm not sure what is going on here.

1

There are 1 best solutions below

0
tzg On

I finally figured out what was going on here. The other project added the xml files as a link. You have to go into add -> Existing Item . . .

enter image description here

enter image description here

I never realized there was a dropdown to add as a link.