-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Create platform and permissions neutral path for blog #3298
Create platform and permissions neutral path for blog #3298
Conversation
Fixes #3285 |
samples/core/GetStarted/Model.cs
Outdated
{ | ||
var folder = System.Environment.SpecialFolder.LocalApplicationData; | ||
var path = System.Environment.GetFolderPath(folder); | ||
DbPath = $"{path}\\blogging.db"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it not be forward slash (or Env.Pathseparatir) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Submitted fix.
Should the comment in line 21 change now? |
LGTM 😁 |
Whew! |
Used local folder for consistency.