© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
3 replies
Tiger

❔ How to use build directory as working directory in debug

Hey, I have a class library that has a
.json
.json
file in a sub-directory, it's marked as content and copies to the output folder.
I reference this class library project, it builds properly to the selected output directory and the json file is there, but it seems like the working directory for the app that references the library is that of the
.csproj
.csproj
, and since the json file is in the other project, when running the app it cannot find the file, how do I say that I want to run the app from the build directory and not project directory? (VS 2022)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Include directory only in DEBUG.
C#CC# / help
14mo ago
Working with Directory.Build.props.
C#CC# / help
3y ago
program wont build in debug
C#CC# / help
2y ago
Directory.Build.props
C#CC# / help
17mo ago