My project has a resource folder that contains pictures and xml files. The program can access the files just in debug mode. When I installed the solution, and run the program it doesn't work. How can I publish my Win Forms solution that it could access the resource folder after install?
Here is my VB code that can pretty good access the files in runtime:
myPath = "myResources\" & fileName & ".xml"
The correct path is this: myXmlPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "MyXmlFolder", myFileName & ".xml")
The correct properties for the files:
-Build action: Content
-Copy to Output Directory: Copy if newer