From 20d5a56e16f7299d4b1b758d7c479e80d04d1241 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 19 Feb 2016 18:39:47 +0200 Subject: [PATCH] Make sure to use Path.Combine when resolving the path --- src/Core/NETPortable/NetPortableProfileTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/NETPortable/NetPortableProfileTable.cs b/src/Core/NETPortable/NetPortableProfileTable.cs index 0d44776f5..b31c8de14 100644 --- a/src/Core/NETPortable/NetPortableProfileTable.cs +++ b/src/Core/NETPortable/NetPortableProfileTable.cs @@ -158,7 +158,7 @@ private static NetPortableProfileCollection BuildPortableProfileCollection() { foreach (string versionDir in Directory.EnumerateDirectories(portableRootDirectory, "v*", SearchOption.TopDirectoryOnly)) { - string profileFilesPath = versionDir + @"\Profile\"; + string profileFilesPath = Path.Combine(versionDir, @"Profile"); profileCollection.AddRange(LoadProfilesFromFramework(versionDir, profileFilesPath)); } }