C
C#2y ago
khamas

❔ How to use build directory as working directory in debug

Hey, I have a class library that has a .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, 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)
3 Replies
Scrivener07
Scrivener072y ago
Project Settings for a .NET C# debug config - Visual Studio (Windows)
Understand how to change the project settings for a C# .NET 5+ or .NET Core debug configuration in Visual Studio, using the Debug tab and Build tab of the project property pages.
khamas
khamas2y ago
yeah figured it out thanks
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.