Skip to content

debug GetStartedApp with error of file not found #14069

Answered by jp2masa
cd-willi asked this question in Q&A
Discussion options

You must be logged in to vote

You can look at the source, here:

public static string DefaultScreenshotsRoot
{
get
{
var dir = System.IO.Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "Screenshots");
Directory.CreateDirectory(dir);
return dir;
}
}

So, that path is returned by Environment.GetFolderPath(Environment.SpecialFolder.MyPictures). The .NET docs specify that the return value is:

The path to the specified system special folder, if that folder physically exists on your computer; otherwise, an empty string ("").

A folder will not physi…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@cd-willi
Comment options

Comment options

You must be logged in to vote
7 replies
@thevortexcloud
Comment options

@cd-willi
Comment options

@cd-willi
Comment options

@thevortexcloud
Comment options

@cd-willi
Comment options

Answer selected by cd-willi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants