# [.net] visual studio working directory

This topic is 3793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have a solution that contains a custom control project and a C# form project. The C# form project uses the control. The control accesses a data file in its constructor. This causes a couple of things: 1. The form designer seeks to like to execute the control constructor. When this is done, it likes to look for the data file in the root solution directory. 2. When I run the form program, it likes to look for the data file in the Debug or Release folder where the EXE is. So the problem is that I am duplicating the data file in each of these directories, which makes it a pain to update. How is this supposed to be done?

• 45
• 12
• 10
• 10
• 9
• ### Forum Statistics

• Total Topics
631372
• Total Posts
2999627
×