Skip to content

Instantly share code, notes, and snippets.

@RickStrahl
Created December 19, 2016 10:54
Show Gist options
  • Save RickStrahl/72075e8adce859abf2f0f0da37fe15df to your computer and use it in GitHub Desktop.
Save RickStrahl/72075e8adce859abf2f0f0da37fe15df to your computer and use it in GitHub Desktop.
Sample that demonstrates the difference when running Visual Studio debugger in 32 bit instead of 64 bit as expected.
string mmFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),"Markdown Monster");
string path = sk.GetValue("Path").ToString();
if (!path.Contains(mmFolder))
{
var pathList = path.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList();
pathList.Add(mmFolder);
path = string.Join(";", pathList.Distinct().ToArray());
sk.SetValue("Path", path);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment