-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Grasping: Visual Studio Code runs the console app in project folder? #35
Comments
At the bottom of page 159, in step 6, before the statement that sets the base directory, and a statement to output the current directory so that you can see where it is looking for
You should see that when running the console app using |
Thanks for replying @markjprice. Scenario A: Command Line Scenario B: Visual Studio 2022 for Mac w Debugger Confirmed for both scenarios. But the scenario, that this sub-section is highlighting, is VSC w debugger. Scenario C: Visual Studio Code w Debugger So I want back to my
I changed it to this:
and then finally I saw VSC Debugger read from My Q3) Is my |
Each project normally has its own |
Thanks for your response @markjprice. Ok, no, you do not expect On my machine, the Required Assets Popup won't appear, if the I will keep playing with VS Code and the C# Extension over the next week. Currently my hunch is that the C# Extension is incorrectly creating My C# extension is v1.24.0, which I've uninstalled and installed a few times now. |
Hello Mark,
I just finished the Chapter 4 sub-section "Logging during development and runtime". So far the book is great, and I'm learning about all the new features in .NET-land since I've been away from .NET for some years.
Using Visual Studio 2022 on Mac, I set the
appsettings.json
file to copy to output directory: Copy If Newer. And during execution, the debugger allows me to confirm reading fromappsettings.json
as seen in variableTraceSwitch ts
. Success!However using Visual Studio Code for Mac, I did not have the same success. Regarding
appsettings.json
location, you had written:I'm confused by this quote, because all my attempts in Visual Studio Code to confirm the reading of
appsettings.json
withts
suggest that this JSON file is not being read, because it's not found. Also, here is mylaunch.json
snippet:Q1) From your quote, can you help me understand what you mean when you write that, Visual Studio Code runs the console app in the project folder? So far I cannot confirm that this is the case, rather the console app runs from
/bin/*/*
is what I observe.Q2) In Visual Studio Code how do we also copy
appsettings.json
to output directory upon build?Thanks!
The text was updated successfully, but these errors were encountered: