1084 references to Path
ComSvcConfig (6)
AtomicFile.cs (3)
203
return
Path
.Combine(
Path
.GetTempPath(),
Path
.GetRandomFileName());
ComAdminWrapper.cs (1)
380
string tlb =
Path
.Combine(path, application + "." + clsid + ".tlb");
ComplusEndpointConfigContainer.cs (2)
62
this.configFile = new AtomicFile(
Path
.Combine(this.appDir, "application.config"));
63
this.manifestFile = new AtomicFile(
Path
.Combine(this.appDir, "application.manifest"));
Microsoft.Activities.Build (8)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (2)
61
string codeFilePath =
Path
.Combine(buildContext.OutputPath, codeFileName);
74
string resourceFilePath =
Path
.Combine(buildContext.OutputPath, GenerateHelperResourceFilename(classData, buildContext, language));
Microsoft\Activities\Build\Debugger\DebugBuildExtension.cs (1)
39
string path =
Path
.GetFullPath(classData.FileName);
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (3)
39
string deferredValidationErrorsFilePath =
Path
.Combine(this.buildContext.OutputPath, ValidationBuildExtension.DeferredValidationErrorsFileName);
165
string filePath =
Path
.GetFullPath(buildContext.OutputPath);
166
string codeFileName =
Path
.Combine(filePath, activityNamespace + "_" + activityName + fileNameSuffix + "." + CodeDomProvider.CreateProvider(this.buildContext.Language).FileExtension);
Microsoft\Activities\Build\Utilities.cs (1)
63
string path =
Path
.GetFullPath(context.LocalAssembly);
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
65
string filePath =
Path
.Combine(this.buildContext.OutputPath, DeferredValidationErrorsFileName);
mscorlib (303)
system\activationcontext.cs (1)
266
return
Path
.GetDirectoryName(_manifestPaths[_manifestPaths.Length-1]);
system\appdomain.cs (5)
2289
if((current[current.Length-1] !=
Path
.PathSeparator) &&
2290
(path[0] !=
Path
.PathSeparator))
2291
appendPath.Append(
Path
.PathSeparator);
3760
if (
Path
.IsRelative(propertyValues[i]))
4018
return
Path
.LegacyNormalizePath(
system\AppDomainSetup.cs (2)
39
using Path = System.IO.
Path
;
881
newPath.Append(
Path
.GetFullPathInternal(directories[i]));
system\applicationactivator.cs (1)
63
m_path =
Path
.Combine(directoryName, file);
system\bcldebug.cs (1)
359
perms.AddPermission(new FileIOPermission(FileIOPermissionAccess.AllAccess,
Path
.GetFullPath(".")));
system\cfgparser.cs (1)
274
(new FileIOPermission( FileIOPermissionAccess.Read, System.IO.
Path
.GetFullPathInternal( fileName ) )).Demand();
system\deployment\cmsutils.cs (1)
96
file =
Path
.Combine(directoryName, file);
system\environment.cs (7)
411
StringBuilder sb = new StringBuilder(
Path
.MAX_PATH);
412
int r = Win32Native.GetSystemDirectory(sb,
Path
.MAX_PATH);
413
Contract.Assert(r <
Path
.MAX_PATH, "r < Path.MAX_PATH");
434
StringBuilder sb = new StringBuilder(
Path
.MAX_PATH);
435
int r = Win32Native.GetWindowsDirectory(sb,
Path
.MAX_PATH);
436
Contract.Assert(r <
Path
.MAX_PATH, "r < Path.MAX_PATH");
1505
StringBuilder sb = new StringBuilder(
Path
.MAX_PATH);
system\io\__error.cs (2)
114
if (
Path
.IsDirectorySeparator(path[path.Length - 1]))
117
path =
Path
.GetFileName(path);
system\io\directory.cs (36)
52
String fullPath =
Path
.GetFullPathInternal(path);
54
String s =
Path
.GetDirectoryName(fullPath);
120
String fullPath =
Path
.GetFullPathInternal(path);
187
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar )
188
|| fullPath.EndsWith(
Path
.AltDirectorySeparatorChar ) )
191
demandPath = fullPath +
Path
.DirectorySeparatorCharAsString + ".";
194
if (!(fullPath.EndsWith(
Path
.DirectorySeparatorChar )
195
|| fullPath.EndsWith(
Path
.AltDirectorySeparatorChar )) )
196
demandPath = fullPath +
Path
.DirectorySeparatorCharAsString;
223
if (length >= 2 &&
Path
.IsDirectorySeparator(fullPath[length - 1]))
226
int lengthRoot =
Path
.GetRootLength(fullPath);
229
if (length == 2 &&
Path
.IsDirectorySeparator(fullPath[1]))
261
while (i > lengthRoot && fullPath[i] !=
Path
.DirectorySeparatorChar && fullPath[i] !=
Path
.AltDirectorySeparatorChar) i--;
586
String fullPath =
Path
.GetFullPathInternal(path);
1054
string fullPath =
Path
.GetFullPathInternal(path);
1055
string root = fullPath.Substring(0,
Path
.GetRootLength(fullPath));
1065
return path.Substring(0,
Path
.GetRootLength(path));
1189
String fulldestDirName =
Path
.GetFullPathInternal(path);
1231
String fullsourceDirName =
Path
.GetFullPathInternal(sourceDirName);
1237
String fulldestDirName =
Path
.GetFullPathInternal(destDirName);
1258
String sourceRoot =
Path
.GetPathRoot(sourcePath);
1259
String destinationRoot =
Path
.GetPathRoot(destPath);
1283
String fullPath =
Path
.GetFullPathInternal(path);
1292
String fullPath =
Path
.GetFullPathInternal(path);
1301
String fullPath =
Path
.GetFullPathInternal(path);
1372
using (SafeFindHandle hnd = Win32Native.FindFirstFile(fullPath +
Path
.DirectorySeparatorCharAsString + "*", ref data)) {
1394
String newFullPath =
Path
.CombineNoChecks(fullPath, fileName);
1395
String newUserPath =
Path
.CombineNoChecks(userPath, fileName);
1410
String mountPoint =
Path
.CombineNoChecks(fullPath, fileName +
Path
.DirectorySeparatorChar);
1429
String reparsePoint =
Path
.CombineNoChecks(fullPath, fileName);
1448
r = Win32Native.DeleteFile(
Path
.CombineNoChecks(fullPath, fileName));
1499
String fullPath =
Path
.GetFullPathInternal(path);
1500
String root =
Path
.GetPathRoot(fullPath);
1501
if (root == fullPath && root[1] ==
Path
.VolumeSeparatorChar)
system\io\directoryinfo.cs (16)
113
Contract.Assert(
Path
.GetRootLength(fullPath) > 0, "fullPath must be fully qualified!");
115
OriginalPath =
Path
.GetFileName(fullPath);
185
if (s.Length > 3 && s.EndsWith(
Path
.DirectorySeparatorChar))
187
parentName =
Path
.GetDirectoryName(s);
241
String newDirs =
Path
.InternalCombine(FullPath, path);
242
String fullPath =
Path
.GetFullPathInternal(newDirs);
622
int rootLength =
Path
.GetRootLength(FullPath);
649
string fullDestDirName =
Path
.GetFullPathInternal(destDirName);
650
if (!fullDestDirName.EndsWith(
Path
.DirectorySeparatorChar))
651
fullDestDirName = fullDestDirName +
Path
.DirectorySeparatorChar;
663
if (FullPath.EndsWith(
Path
.DirectorySeparatorChar))
666
fullSourcePath = FullPath +
Path
.DirectorySeparatorChar;
671
String sourceRoot =
Path
.GetPathRoot(fullSourcePath);
672
String destinationRoot =
Path
.GetPathRoot(fullDestDirName);
752
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar))
756
dirName =
Path
.GetFileName(s);
system\io\driveinfo.cs (2)
65
Path
.CheckInvalidPathChars(driveName);
66
_name =
Path
.GetPathRoot(driveName);
system\io\file.cs (25)
153
String fullSourceFileName =
Path
.GetFullPathInternal(sourceFileName);
154
String fullDestFileName =
Path
.GetFullPathInternal(destFileName);
290
String fullPath =
Path
.GetFullPathInternal(path);
327
String fullPath =
Path
.GetFullPathInternal(path);
336
DriveInfo di = new DriveInfo(
Path
.GetPathRoot(fullPath));
358
String fullPath =
Path
.GetFullPathInternal(path);
367
DriveInfo di = new DriveInfo(
Path
.GetPathRoot(fullPath));
425
path =
Path
.GetFullPathInternal(path);
430
if (path.Length > 0 &&
Path
.IsDirectorySeparator(path[path.Length - 1]))
528
String fullPath =
Path
.GetFullPathInternal(path);
592
String fullPath =
Path
.GetFullPathInternal(path);
656
String fullPath =
Path
.GetFullPathInternal(path);
680
String fullPath =
Path
.GetFullPathInternal(path);
705
String fullPath =
Path
.GetFullPathInternal(path);
743
String fullPath =
Path
.GetFullPathInternal(path);
918
FileStream.DefaultBufferSize, FileOptions.None,
Path
.GetFileName(path), false, false, checkHost)) {
979
FileStream.DefaultBufferSize, FileOptions.None,
Path
.GetFileName(path), false, false, checkHost))
1247
String fullSourceFileName =
Path
.GetFullPathInternal(sourceFileName);
1248
String fullDestFileName =
Path
.GetFullPathInternal(destFileName);
1308
String fullSrcPath =
Path
.GetFullPathInternal(sourceFileName);
1309
String fullDestPath =
Path
.GetFullPathInternal(destinationFileName);
1312
fullBackupPath =
Path
.GetFullPathInternal(destinationBackupFileName);
1365
String tempPath = path.TrimEnd(new char [] {
Path
.DirectorySeparatorChar,
Path
.AltDirectorySeparatorChar});
1468
String FullPath =
Path
.GetFullPathInternal(path);
system\io\fileinfo.cs (8)
102
String fullPath =
Path
.GetFullPathInternal(fileName);
113
_name =
Path
.GetFileName(fileName);
134
_name =
Path
.GetFileName(OriginalPath);
143
Contract.Assert(
Path
.GetRootLength(fullPath) > 0, "fullPath must be fully qualified!");
144
_name =
Path
.GetFileName(fullPath);
187
String directoryName =
Path
.GetDirectoryName(FullPath);
464
String fullDestFileName =
Path
.GetFullPathInternal(destFileName);
479
_name =
Path
.GetFileName(fullDestFileName);
system\io\filestream.cs (10)
512
: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.Read, DefaultBufferSize, FileOptions.None,
Path
.GetFileName(path), false) {
519
: this(path, mode, access, FileShare.Read, DefaultBufferSize, FileOptions.None,
Path
.GetFileName(path), false) {
526
: this(path, mode, access, share, DefaultBufferSize, FileOptions.None,
Path
.GetFileName(path), false) {
533
: this(path, mode, access, share, bufferSize, FileOptions.None,
Path
.GetFileName(path), false)
542
: this(path, mode, access, share, bufferSize, options,
Path
.GetFileName(path), false)
554
: this(path, mode, access, share, bufferSize, (useAsync ? FileOptions.Asynchronous : FileOptions.None),
Path
.GetFileName(path), false)
569
Init(path, mode, (FileAccess)0, (int)rights, true, share, bufferSize, options, secAttrs,
Path
.GetFileName(path), false, false, false);
585
Init(path, mode, (FileAccess)0, (int)rights, true, share, bufferSize, options, secAttrs,
Path
.GetFileName(path), false, false, false);
715
string filePath =
Path
.NormalizePath(path, true, maxPath);
844
tempPath =
Path
.AddLongPathPrefix(tempPath);
system\io\filesystemenumerable.cs (18)
216
fullPath =
Path
.GetFullPathInternal(path);
218
normalizedSearchPath =
Path
.GetDirectoryName(fullSearchString);
247
String searchPatternDirName =
Path
.GetDirectoryName(normalizedSearchPattern);
251
userPathTemp =
Path
.CombineNoChecks(userPathTemp, searchPatternDirName);
268
String searchPath =
Path
.InternalCombine(searchData.fullPath, searchCriteria);
426
String searchPath =
Path
.InternalCombine(searchData.fullPath, searchCriteria);
527
String searchPath =
Path
.InternalCombine(localSearchData.fullPath, "*");
555
string tempFullPath =
Path
.CombineNoChecks(localSearchData.fullPath, fileName);
556
string tempUserPath =
Path
.CombineNoChecks(localSearchData.userPath, fileName);
600
String tempSearchPattern = searchPattern.TrimEnd(
Path
.TrimEndChars);
608
Path
.CheckSearchPattern(tempSearchPattern);
620
if (
Path
.IsDirectorySeparator(lastChar))
638
String tempStr =
Path
.InternalCombine(fullPath, searchPattern);
642
if (
Path
.IsDirectorySeparator(lastChar) || lastChar ==
Path
.VolumeSeparatorChar)
677
=>
Path
.CombineNoChecks(searchData.userPath, findData.cFileName);
695
string fullPath =
Path
.CombineNoChecks(searchData.fullPath, fileName);
724
string fullPath =
Path
.CombineNoChecks(searchData.fullPath, fileName);
system\io\filesysteminfo.cs (4)
78
FullPath =
Path
.GetFullPathInternal(info.GetString("FullPath"));
131
if (ch ==
Path
.DirectorySeparatorChar || ch ==
Path
.AltDirectorySeparatorChar || ch ==
Path
.VolumeSeparatorChar)
system\io\isolatedstorage\isolatedstorage.cs (1)
233
return
Path
.ToBase32StringSuitableForDirName(b);
system\io\isolatedstorage\isolatedstoragefile.cs (22)
562
if (path.EndsWith(
Path
.DirectorySeparatorChar + ".", StringComparison.Ordinal)) {
563
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)) {
566
fullPath +=
Path
.DirectorySeparatorChar + ".";
606
if (isPath.EndsWith(
Path
.DirectorySeparatorChar + ".", StringComparison.Ordinal)) {
607
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar)) {
610
fullPath +=
Path
.DirectorySeparatorChar + ".";
1253
String tempSearchPattern = searchPattern.TrimEnd(
Path
.TrimEndChars);
1254
Path
.CheckSearchPattern(tempSearchPattern);
2004
string relRandomDirectory1 =
Path
.GetRandomFileName();
2005
string relRandomDirectory2 =
Path
.GetRandomFileName();
2098
string relRandomDirectory1 =
Path
.GetRandomFileName();
2099
string relRandomDirectory2 =
Path
.GetRandomFileName();
2136
rndName =
Path
.GetRandomFileName() + "\\" +
Path
.GetRandomFileName();
2229
return
Path
.ToBase32StringSuitableForDirName(new SHA1CryptoServiceProvider().ComputeHash(ms));
2423
if (lastChar ==
Path
.DirectorySeparatorChar ||
2424
lastChar ==
Path
.AltDirectorySeparatorChar ||
2463
SafeFindHandle hnd = Win32Native.FindFirstFile(
Path
.AddLongPathPrefix(fullPath), ref data);
2880
Contract.Assert(m_RootDir[m_nRootDir].Length <
Path
.MaxPath);
2898
m_Current.Path1 =
Path
.GetFileName(m_RootDir[m_nRootDir]);
2899
m_Current.Path2 =
Path
.GetFileName(m_SubDir[m_nSubDir]);
2936
Contract.Assert(m_Root.Length <
Path
.MaxPath);
system\io\longpath.cs (44)
53
return
Path
.NormalizePath(path, fullCheck,
Path
.MaxLongPath);
66
String tempResult =
Path
.InternalCombine(tempPath1, path2);
70
tempResult =
Path
.AddLongPathPrefix(tempResult);
80
int root =
Path
.GetRootLength(tempPath);
95
String tempPath =
Path
.RemoveLongPathPrefix(path);
96
return
Path
.IsPathRooted(tempPath);
123
result =
Path
.AddLongPathPrefix(result);
144
Path
.CheckInvalidPathChars(tempPath);
152
while (i > root && tempPath[--i] !=
Path
.DirectorySeparatorChar && tempPath[i] !=
Path
.AltDirectorySeparatorChar);
156
result =
Path
.AddLongPathPrefix(result);
168
removed =
Path
.HasLongPathPrefix(path);
171
return
Path
.RemoveLongPathPrefix(path);
214
fullSourceFileName =
Path
.AddLongPathPrefix(fullSourceFileName);
215
fullDestFileName =
Path
.AddLongPathPrefix(fullDestFileName);
263
String tempPath =
Path
.AddLongPathPrefix(fullPath);
297
if (path.Length > 0 &&
Path
.IsDirectorySeparator(path[path.Length - 1])) {
317
String tempPath =
Path
.AddLongPathPrefix(path);
331
String tempPath =
Path
.AddLongPathPrefix(fullPath);
352
String tempPath =
Path
.AddLongPathPrefix(fullPath);
372
String tempPath =
Path
.AddLongPathPrefix(fullPath);
407
String tempSourceFileName =
Path
.AddLongPathPrefix(fullSourceFileName);
408
String tempDestFileName =
Path
.AddLongPathPrefix(fullDestFileName);
425
String tempPath =
Path
.AddLongPathPrefix(fullPath);
476
if (length >= 2 &&
Path
.IsDirectorySeparator(fullPath[length - 1]))
482
if (length == 2 &&
Path
.IsDirectorySeparator(fullPath[1]))
506
while (i > lengthRoot && fullPath[i] !=
Path
.DirectorySeparatorChar && fullPath[i] !=
Path
.AltDirectorySeparatorChar) i--;
562
if (name.Length >=
Path
.MaxLongPath)
631
if (sourcePath.Length >=
Path
.MaxLongPath)
637
if (destPath.Length >=
Path
.MaxLongPath)
694
String longPath =
Path
.AddLongPathPrefix(fullPath);
741
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
747
searchPath = fullPath +
Path
.DirectorySeparatorChar + "*";
796
String mountPoint = LongPath.InternalCombine(fullPath, data.cFileName +
Path
.DirectorySeparatorChar);
946
String tempPath =
Path
.AddLongPathPrefix(path);
959
fullPath =
Path
.RemoveLongPathPrefix(fullPath);
962
if (fullPath.EndsWith(
Path
.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)
963
|| fullPath.EndsWith(
Path
.AltDirectorySeparatorChar.ToString(), StringComparison.Ordinal))
966
demandPath = fullPath +
Path
.DirectorySeparatorChar + '.';
970
if (!(fullPath.EndsWith(
Path
.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)
971
|| fullPath.EndsWith(
Path
.AltDirectorySeparatorChar.ToString(), StringComparison.Ordinal)))
972
demandPath = fullPath +
Path
.DirectorySeparatorChar;
system\io\path.cs (3)
541
newBuffer = new PathHelper(path.Length +
Path
.MaxPath, maxPathLength);
1100
char[] rndCharArray =
Path
.ToBase32StringSuitableForDirName(key).ToCharArray();
1253
if (
Path
.IsPathRooted(paths[i])) {
system\io\pathhelper.cs (17)
67
Contract.Requires(length ==
Path
.MaxPath);
73
this.m_maxPath =
Path
.MaxPath;
157
char* finalBuffer = stackalloc char[
Path
.MaxPath + 1];
158
int result = Win32Native.GetFullPathName(m_arrayPtr,
Path
.MaxPath + 1, finalBuffer, IntPtr.Zero);
163
if (result >
Path
.MaxPath) {
170
if (result >=
Path
.MaxPath)
173
Contract.Assert(result <
Path
.MaxPath, "did we accidently remove a PathTooLongException check?");
178
else if (result <
Path
.MaxPath) {
236
char* shortFileNameBuffer = stackalloc char[
Path
.MaxPath + 1];
238
int r = Win32Native.GetLongPathName(buffer, shortFileNameBuffer,
Path
.MaxPath);
243
if (r >=
Path
.MaxPath)
277
if (tempName.Length >
Path
.MaxPath) {
278
tempName =
Path
.AddLongPathPrefix(tempName);
313
sb =
Path
.RemoveLongPathPrefix(sb);
330
Append(
Path
.DirectorySeparatorChar);
331
if (Length + lenSavedName >=
Path
.MaxPath)
343
Append(
Path
.DirectorySeparatorChar);
system\io\pathinternal.cs (12)
56
if ((path.Length > startIndex && path[startIndex] ==
Path
.VolumeSeparatorChar)
58
|| (path.Length >= startIndex + 2 && path[startIndex + 1] ==
Path
.VolumeSeparatorChar && !IsValidDriveChar(path[startIndex]))
60
|| (path.Length > startIndex + 2 && path.IndexOf(
Path
.VolumeSeparatorChar, startIndex + 2) != -1))
432
else if (pathLength >= volumeSeparatorLength && path[volumeSeparatorLength - 1] ==
Path
.VolumeSeparatorChar)
484
&& (path[1] ==
Path
.VolumeSeparatorChar)
522
&& (path[1] ==
Path
.VolumeSeparatorChar)
543
|| (startIndex + 1 < path.Length && path[startIndex + 1] ==
Path
.VolumeSeparatorChar && IsValidDriveChar(path[startIndex])))
558
return c ==
Path
.DirectorySeparatorChar || c ==
Path
.AltDirectorySeparatorChar;
602
&& (current !=
Path
.DirectorySeparatorChar
619
builder.Append(
Path
.DirectorySeparatorChar);
636
current =
Path
.DirectorySeparatorChar;
system\io\streamreader.cs (1)
240
Stream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.SequentialScan,
Path
.GetFileName(path), false, false, checkHost);
system\io\streamwriter.cs (1)
227
DefaultFileStreamBufferSize, FileOptions.SequentialScan,
Path
.GetFileName(path), false, false, checkHost);
system\reflection\assembly.cs (3)
2462
return "file:///" +
Path
.GetFullPathInternal( codebase );
2801
codeBase =
Path
.GetFullPathInternal(codeBase); // canonicalize
3074
Path
.MAX_PATH);
system\reflection\assemblyname.cs (1)
211
String fullPath =
Path
.GetFullPathInternal(assemblyFile);
system\reflection\emit\assemblybuilder.cs (19)
863
if (!String.Equals(fileName,
Path
.GetFileName(fileName)))
1042
if (!String.Equals(fileName,
Path
.GetFileName(fileName)))
1057
fullFileName =
Path
.Combine(Environment.CurrentDirectory, fileName);
1063
fullFileName =
Path
.Combine(m_assemblyData.m_strDir, fileName);
1067
fullFileName =
Path
.GetFullPath(fullFileName);
1070
fileName =
Path
.GetFileName(fullFileName);
1132
if (!String.Equals(fileName,
Path
.GetFileName(fileName)))
1146
fullFileName =
Path
.Combine(Environment.CurrentDirectory, fileName);
1151
fullFileName =
Path
.Combine(m_assemblyData.m_strDir, fileName);
1155
fullFileName =
Path
.UnsafeGetFullPath(fullFileName);
1158
fileName =
Path
.GetFileName(fullFileName);
1533
strFullFileName =
Path
.Combine(Environment.CurrentDirectory, resourceFileName);
1538
strFullFileName =
Path
.Combine(m_assemblyData.m_strDir, resourceFileName);
1540
strFullFileName =
Path
.GetFullPath(resourceFileName);
1772
if (!String.Equals(assemblyFileName,
Path
.GetFileName(assemblyFileName)))
1843
assemblyFileName =
Path
.Combine(m_assemblyData.m_strDir, assemblyFileName);
1844
assemblyFileName =
Path
.GetFullPath(assemblyFileName);
1946
strModFileName =
Path
.Combine(m_assemblyData.m_strDir, strModFileName);
1947
strModFileName =
Path
.GetFullPath(strModFileName);
system\reflection\emit\modulebuilder.cs (3)
999
fullyQualifiedName =
Path
.Combine(ContainingAssemblyBuilder.m_assemblyData.m_strDir, fullyQualifiedName);
1000
fullyQualifiedName =
Path
.UnsafeGetFullPath(fullyQualifiedName);
1441
strFullFileName =
Path
.UnsafeGetFullPath(resourceFileName);
system\reflection\emit\modulebuilderdata.cs (1)
52
String strExtension =
Path
.GetExtension(strFileName);
system\reflection\module.cs (1)
1101
Path
.GetFullPathInternal(fullyQualifiedName);
system\resources\filebasedresourcegroveler.cs (2)
94
dir =
Path
.GetDirectoryName(defaultResPath);
126
String path =
Path
.Combine(_mediator.ModuleDir, fileName);
system\resources\resourcemanager.cs (6)
1533
((fileName[1] ==
Path
.VolumeSeparatorChar) || (fileName[0] ==
Path
.DirectorySeparatorChar && fileName[1] ==
Path
.DirectorySeparatorChar)) &&
1568
throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTag",
Path
.GetFileName(fileName), assemblyNode.Name));
1571
throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagNoAttr",
Path
.GetFileName(fileName)));
1576
throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagBadAttr",
Path
.GetFileName(fileName), de.Key, de.Value));
system\resources\resourcereader.cs (1)
167
_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess,
Path
.GetFileName(fileName), false), Encoding.UTF8);
system\resources\resourcewriter.cs (1)
359
tempFile =
Path
.GetTempFileName();
system\runtime\designerservices\windowsruntimedesignercontext.cs (1)
40
if (System.IO.
Path
.IsRelative(path))
system\runtime\interopservices\runtimeenvironment.cs (1)
116
StringBuilder sb = new StringBuilder(
Path
.MAX_PATH);
system\runtime\interopservices\typelibconverter.cs (5)
104
if (asmFileName.Length >
Path
.MAX_PATH)
125
String strNonQualifiedAsmFileName =
Path
.GetFileName(asmFileName);
239
dir =
Path
.GetDirectoryName(asmFileName);
313
String strFileNameNoPath =
Path
.GetFileName(asmFileName);
314
String strExtension =
Path
.GetExtension(asmFileName);
system\security\accesscontrol\filesecurity.cs (2)
643
string fullPath =
Path
.GetFullPathInternal(fileName);
680
string fullPath =
Path
.GetFullPathInternal(name);
system\security\cryptography\x509certificates\x509certificate.cs (1)
827
string fullPath =
Path
.GetFullPathInternal(fileName);
system\security\permissions\fileiopermission.cs (2)
563
Path
.CheckInvalidPathChars(str[i]);
1095
fullPath.StartsWith(
Path
.NormalizePath(fullPath, fullCheck: false), StringComparison.OrdinalIgnoreCase),
system\security\policy\filecodegroup.cs (1)
126
permSet.SetPermission(new FileIOPermission(m_access, System.IO.
Path
.GetFullPath(directory)));
system\security\securitymanager.cs (1)
180
String fullPath =
Path
.GetFullPath( path );
system\security\util\stringexpressionset.cs (3)
172
if (
Path
.IsRelative(temp))
337
if (
Path
.IsRelative(temp))
755
string newPath =
Path
.GetFullPathInternal(path);
system\threading\eventwaithandle.cs (3)
59
if(null != name && System.IO.
Path
.MAX_PATH < name.Length)
105
if(null != name && System.IO.
Path
.MAX_PATH < name.Length)
233
if(null != name && System.IO.
Path
.MAX_PATH < name.Length)
system\threading\mutex.cs (3)
63
if(null != name && System.IO.
Path
.MAX_PATH < name.Length)
92
if (null != name &&
Path
.MAX_PATH < name.Length)
363
if(System.IO.
Path
.MAX_PATH < name.Length)
system\timezoneinfo.cs (1)
2597
filePath =
Path
.Combine(system32, tzresDll);
PresentationBuildTasks (43)
BuildTasks\Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
128
string currentProjectName =
Path
.GetFileNameWithoutExtension(CurrentProject);
129
string currentProjectExtension =
Path
.GetExtension(CurrentProject);
138
string randomFileName =
Path
.GetFileNameWithoutExtension(
Path
.GetRandomFileName());
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (6)
727
string buildCodeFile = OutputPath +
Path
.ChangeExtension(relativeFilePath, buildExtension);
728
string intelCodeFile = OutputPath +
Path
.ChangeExtension(relativeFilePath, intellisenseExtension);
736
bamlFile = OutputPath +
Path
.ChangeExtension(relativeFilePath, SharedStrings.BamlExtension);
876
return
Path
.Combine(OutputPath, fileName);
1140
asmname =
Path
.GetFileNameWithoutExtension(refpath);
1693
locFile =
Path
.ChangeExtension(xamlRelativeFilePath, SharedStrings.LocExtension);
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
620
asmname =
Path
.GetFileNameWithoutExtension(refpath);
800
string bamlFileName =
Path
.ChangeExtension(resolvedXamlfile, SharedStrings.BamlExtension);
BuildTasks\Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
63
string absoluteFilePath =
Path
.Combine(
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (10)
55
_sourcePath =
Path
.GetFullPath(path);
144
SourceDir = Directory.GetCurrentDirectory() +
Path
.DirectorySeparatorChar;
272
_outputPath =
Path
.GetFullPath(value);
274
if (!_outputPath.EndsWith((
Path
.DirectorySeparatorChar).ToString(), StringComparison.Ordinal))
275
_outputPath +=
Path
.DirectorySeparatorChar;
377
string fullFilePath =
Path
.GetFullPath(filePath);
396
relPath =
Path
.GetFileName(fullFilePath);
413
Path
.GetExtension(sourceFilePath).Equals(SharedStrings.BamlExtension) &&
414
Path
.GetExtension(path).Equals(SharedStrings.XamlExtension))
417
path =
Path
.ChangeExtension(path, SharedStrings.BamlExtension);
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (7)
172
string sourceDir = Directory.GetCurrentDirectory() +
Path
.DirectorySeparatorChar;
375
return
Path
.Combine(_backupPath,
Path
.ChangeExtension(
Path
.GetFileName(fileName), "uidtemp"));
380
return
Path
.Combine(_backupPath,
Path
.ChangeExtension(
Path
.GetFileName(fileName), "uidbackup"));
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (4)
2586
Directory.GetCurrentDirectory() +
Path
.DirectorySeparatorChar,
3221
string fullFilePath =
Path
.GetFullPath(_splashImage);
3234
relPath = TaskHelper.GetRootRelativePath(Directory.GetCurrentDirectory() +
Path
.DirectorySeparatorChar, fullFilePath);
3243
resourceId =
Path
.GetFileName(fullFilePath);
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (2)
387
if (!
Path
.IsPathRooted(filePath))
393
string fullFilePath =
Path
.GetFullPath(filePath);
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (4)
217
string filepath =
Path
.GetFullPath(fileName);
463
Path
.GetFullPath(taskItem.ItemSpec),
494
string fullPath =
Path
.GetFullPath(_mcPass1.ContentFiles[i].ItemSpec);
500
relContentFilePath =
Path
.GetFileName(fullPath);
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (3)
96
if ( !
Path
.IsPathRooted(thePath) )
102
thePath =
Path
.GetFullPath(thePath);
285
if (String.Compare(
Path
.GetExtension(assemblyPath), SharedStrings.MetadataDll, StringComparison.OrdinalIgnoreCase) == 0)
PresentationCore (20)
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (3)
91
localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName +
Path
.DirectorySeparatorChar;
99
if (String.Compare(((localPath.Length > 0 && localPath[localPath.Length - 1] !=
Path
.DirectorySeparatorChar) ? localPath +
Path
.DirectorySeparatorChar : localPath), Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
114
return System.IO.
Path
.Combine(frameworkInstallPath, _sxsFontsRelativeLocation);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (3)
407
private static readonly char[] InvalidFileNameChars =
Path
.GetInvalidFileNameChars();
756
return
Path
.GetExtension(unescapedPath);
913
fileName =
Path
.GetFileName(fileName);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (1)
131
string extension =
Path
.GetExtension(fileName);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (6)
143
_isFileSystemFolder = localPath[localPath.Length - 1] ==
Path
.DirectorySeparatorChar;
211
if (
Path
.GetFileName(fileName) == fileName)
212
fileName =
Path
.Combine(Util.WindowsFontsLocalPath, fileName);
264
if (Util.IsSupportedFontExtension(
Path
.GetExtension(file), out isComposite))
288
isComposite = Util.IsCompositeFont(
Path
.GetExtension(_uri.AbsoluteUri));
293
isComposite = Util.IsCompositeFont(
Path
.GetExtension(resourceName));
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
219
String guid =
Path
.GetFileNameWithoutExtension(
Core\CSharp\System\Windows\Clipboard.cs (1)
333
string filePath =
Path
.GetFullPath(fileDrop);
Core\CSharp\System\Windows\DataObject.cs (1)
628
string filePath =
Path
.GetFullPath(fileDrop);
Core\CSharp\System\Windows\Input\Cursor.cs (1)
264
string filePath =
Path
.GetTempFileName();
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
683
profilePath = new Uri(
Path
.Combine(buffer.ToString(), profilePathString));
Shared\MS\Internal\MimeTypeMapper.cs (1)
146
string extensionWithDot =
Path
.GetExtension(docString);
PresentationFramework (28)
src\Framework\Microsoft\Win32\FileDialog.cs (11)
327
string safeFN =
Path
.GetFileName(CriticalFileName);
363
safeFileNames[i] =
Path
.GetFileName(unsafeFileNames[i]);
1239
string tempPath =
Path
.GetFullPath(fileName);
1446
if (!directory.EndsWith(
Path
.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
1448
directory = directory +
Path
.DirectorySeparatorChar;
1464
bool isUncPath = (fileName[0] ==
Path
.DirectorySeparatorChar && fileName[1] ==
Path
.DirectorySeparatorChar);
1467
fileName[1] ==
Path
.VolumeSeparatorChar &&
1468
fileName[2] ==
Path
.DirectorySeparatorChar );
1625
if (AddExtension && !
Path
.HasExtension(fileName))
1634
string currentExtension =
Path
.GetExtension(fileName);
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
279
fExist = File.Exists(
Path
.GetFullPath(fileName));
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
291
System.IO.
Path
.GetExtension(destinationUri.LocalPath)
src\Framework\MS\Internal\AppModel\ResourcePart.cs (3)
156
if (String.Compare(
Path
.GetExtension(_name), ResourceContainer.BamlExt, StringComparison.OrdinalIgnoreCase) == 0)
161
if (String.Compare(
Path
.GetExtension(_name), ResourceContainer.XamlExt, StringComparison.OrdinalIgnoreCase) == 0)
164
string newName =
Path
.ChangeExtension(_name, ResourceContainer.BamlExt);
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
1127
string full_ocSetupPath = System.IO.
Path
.Combine(
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
610
string extension =
Path
.GetExtension(path);
src\Framework\MS\Win32\UxThemeWrapper.cs (1)
274
themeName =
Path
.GetFileNameWithoutExtension(themeName);
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
126
string hostProcessName =
Path
.GetFileName(UnsafeNativeMethods.GetModuleFileName(new HandleRef()));
src\Framework\System\Windows\Documents\Speller.cs (1)
1673
tempFolder = System.IO.
Path
.GetTempPath();
src\Framework\System\Windows\Interop\DocobjHost.cs (4)
1002
string appBase =
Path
.GetDirectoryName(PHDLLPath) + "\\" + xamlViewer;
1259
xpsViewerPath = System.IO.
Path
.GetDirectoryName(xpsViewerPath);
1353
_applicationManifestPath =
Path
.ChangeExtension(path, ".exe.manifest");
1354
_exePath =
Path
.ChangeExtension(path, ".exe");
src\Framework\System\Windows\Shell\JumpList.cs (2)
155
itemPath =
Path
.GetFullPath(itemPath);
1138
return ShellUtil.GetShellItemForPath(
Path
.GetFullPath(jumpPath.Path));
src\Framework\System\Windows\SystemParameters.cs (1)
6135
_uxThemeName = System.IO.
Path
.GetFileNameWithoutExtension(name);
System (74)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
3628
string fullname =
Path
.Combine(compilerDirectory, compilerExe);
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
580
string asmblFileDir =
Path
.GetDirectoryName(asmblFilePath);
590
string fileName =
Path
.GetFileName(s);
2838
if (!
Path
.GetExtension(outputAssemblyFile).Equals(extensionWithDot, StringComparison.OrdinalIgnoreCase)) {
compmod\system\codedom\compiler\CodeCompiler.cs (1)
158
string fullname =
Path
.Combine(compilerDirectory, compilerExe);
compmod\system\codedom\compiler\CodeDOMProvider.cs (6)
315
char[] pathSeperators = new char[] {
Path
.DirectorySeparatorChar };
318
string referenceAssemblyFolderPrefix =
Path
.Combine("Reference Assemblies", "Microsoft", "Framework");
322
if (
Path
.GetFileName(s).Equals("mscorlib.dll", StringComparison.OrdinalIgnoreCase)) {
339
if (!String.Equals(multiTargetingPackRoot,
Path
.GetDirectoryName(s), StringComparison.OrdinalIgnoreCase)) {
345
multiTargetingPackRoot =
Path
.GetDirectoryName(s);
354
coreAssemblyFilePath =
Path
.Combine(multiTargetingPackRoot, "mscorlib.dll");
compmod\system\codedom\compiler\CodeValidator.cs (1)
818
if (e.FileName.IndexOfAny(
Path
.GetInvalidPathChars()) != -1)
compmod\system\codedom\compiler\RedistVersionInfo.cs (1)
105
dir =
Path
.Combine(comPlus_InstallRoot, comPlus_Version);
compmod\system\codedom\compiler\TempFiles.cs (5)
215
string full =
Path
.GetFullPath(basePath);
320
string randomFileName =
Path
.GetFileNameWithoutExtension(
Path
.GetRandomFileName());
323
tempDir =
Path
.GetTempPath();
328
tempDir =
Path
.Combine(tempDir, randomFileName);
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
171
fileName =
Path
.GetFileName(fileName); // we don't want to use FileInfo here... it requests FileIOPermission that we
compmod\system\componentmodel\IntSecurity.cs (1)
24
full = System.IO.
Path
.GetFullPath(fileName);
compmod\system\componentmodel\LicFileLicenseProvider.cs (1)
77
string moduleDir =
Path
.GetDirectoryName(modulePath);
compmod\system\componentmodel\SyntaxCheck.cs (1)
68
return
Path
.IsPathRooted(value);
compmod\system\diagnostics\TextWriterTraceListener.cs (4)
213
string fullPath =
Path
.GetFullPath(fileName);
214
string dirPath =
Path
.GetDirectoryName(fullPath);
215
string fileNameOnly =
Path
.GetFileName(fullPath);
229
fullPath =
Path
.Combine(dirPath, fileNameOnly);
compmod\system\diagnostics\TraceInternal.cs (1)
62
appName =
Path
.GetFileName(Environment.GetCommandLineArgs()[0]);
compmod\system\diagnostics\traceutils.cs (5)
58
if ((initializeData[0] !=
Path
.DirectorySeparatorChar) && (initializeData[0] !=
Path
.AltDirectorySeparatorChar) && !
Path
.IsPathRooted(initializeData)) {
62
string dirPath =
Path
.GetDirectoryName(filePath);
65
initializeData =
Path
.Combine(dirPath, initializeData);
net\System\Net\Configuration\UriSection.cs (2)
214
string machineConfigFilePath =
Path
.Combine(
Path
.Combine(runtimeDir, "Config"), "machine.config");
net\System\Net\mail\SmtpClient.cs (2)
396
if (!
Path
.IsPathRooted(pickupDirectory))
402
pathAndFilename =
Path
.Combine(pickupDirectory, filename);
net\System\Net\NetRegistryConfiguration.cs (1)
187
appExePath =
Path
.GetFullPath(appExePath);
net\System\Net\UnsafeNativeMethods.cs (1)
3509
string dllFileName =
Path
.Combine(Environment.SystemDirectory, TOKENBINDING);
net\System\Net\webclient.cs (4)
599
fileName =
Path
.GetFullPath(fileName);
629
+ "Content-Disposition: form-data; name=\"file\"; filename=\"" +
Path
.GetFileName(fileName) + "\"\r\n"
972
return new Uri(
Path
.GetFullPath(path));
976
return new Uri(
Path
.GetFullPath(path));
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
149
s_DllFileName =
Path
.Combine(Environment.SystemDirectory, WEBSOCKET);
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
433
String zlibDllPath =
Path
.Combine(fxDir, ZLibNativeDllName);
security\system\security\cryptography\cryptoapi.cs (2)
3502
string fullPath =
Path
.GetFullPath((string) pvObject);
3567
string fullPath =
Path
.GetFullPath((string) pvObject);
security\system\security\cryptography\x509\x509certificate2.cs (1)
1169
string fullPath =
Path
.GetFullPath(fileName);
services\io\system\io\FileSystemWatcher.cs (3)
306
if (value.IndexOfAny(FileSystemWatcher.wildcards) != -1 || value.IndexOfAny(System.IO.
Path
.GetInvalidPathChars()) != -1) {
680
string name = System.IO.
Path
.GetFileName(relativePath);
965
fullPath = System.IO.
Path
.GetFullPath(directory);
services\io\system\io\RenamedEventArgs.cs (1)
51
new FileIOPermission(FileIOPermissionAccess.Read,
Path
.GetPathRoot(oldFullPath)).Demand();
services\monitoring\system\diagnosticts\CounterSampleCalculator.cs (1)
235
string perfcounterPath =
Path
.Combine(installPath, "perfcounter.dll");
services\monitoring\system\diagnosticts\EventLog.cs (2)
1075
return
Path
.Combine(SharedUtils.GetLatestBuildDllDirectory(machineName), DllName);
1220
return
Path
.GetFullPath(path);
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1225
return
Path
.Combine(SharedUtils.GetLatestBuildDllDirectory(machineName), DllName);
services\monitoring\system\diagnosticts\FileVersionInfo.cs (1)
421
return
Path
.GetFullPath(fileName);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (4)
193
iniFilePath =
Path
.GetTempFileName();
231
tempPath =
Path
.GetTempPath();
240
symbolFilePath =
Path
.GetTempFileName();
371
iniWriter.WriteLine(
Path
.GetFileName(SymbolFilePath));
services\monitoring\system\diagnosticts\Process.cs (2)
876
processInfo.processName =
Path
.ChangeExtension(
Path
.GetFileName(mainModuleName), null);
services\monitoring\system\diagnosticts\ProcessManager.cs (3)
373
processInfo.processName =
Path
.ChangeExtension(
Path
.GetFileName(name), null);
688
moduleInfo.fileName =
Path
.Combine(Environment.SystemDirectory, "smss.exe");
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
295
string extension =
Path
.GetExtension(FileName);
sys\system\configuration\ConfigurationException.cs (4)
155
fullPath =
Path
.GetFullPath(filename);
185
if (!
Path
.IsPathRooted(filename)) {
196
string fullPath =
Path
.GetFullPath(filename);
202
filename =
Path
.GetFileName(fullPath);
sys\system\configuration\LocalFileSettingsProvider.cs (1)
351
file =
Path
.Combine(prevDir.FullName, ConfigurationManagerInternalFactory.Instance.UserConfigFilename);
sys\system\configuration\NameValueFileSectionHandler.cs (2)
45
string directory =
Path
.GetDirectoryName(configFile);
46
string sourceFileFullPath =
Path
.Combine(directory, filename);
sys\system\Media\SoundPlayer.cs (1)
399
result = new Uri(
Path
.GetFullPath(partialUri));
System.Activities (5)
System\Activities\Debugger\DebugManager.cs (1)
98
Instrument(activity, sourceLocations,
Path
.GetFileNameWithoutExtension(sourcePath), checksumCache);
System\Activities\Debugger\State.cs (4)
221
if (ReplaceInvalidCharactersWithUnderscore(ref newFileName,
Path
.GetInvalidPathChars()))
226
string fileNameOnly =
Path
.GetFileName(newFileName);
227
if (ReplaceInvalidCharactersWithUnderscore(ref fileNameOnly,
Path
.GetInvalidFileNameChars()))
230
string path =
Path
.GetDirectoryName(newFileName);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (3)
96
string extension =
Path
.GetExtension(resourceNames[i]);
170
return ".xaml".Equals(
Path
.GetExtension(resourceName), StringComparison.OrdinalIgnoreCase);
181
resourceName =
Path
.GetFileNameWithoutExtension(resourceName);
System.AddIn (76)
System\Addin\Hosting\ActivationWorker.cs (7)
86
Path
.Combine(_pipeline.PipelineRootDirectory, AddInStore.ContractsDirName)));
88
Path
.Combine(_pipeline.PipelineRootDirectory, AddInStore.AddInAdaptersDirName)));
90
Path
.Combine(_pipeline.PipelineRootDirectory, AddInStore.AddInBasesDirName)));
92
Path
.GetDirectoryName(_pipeline._addin.Location)));
234
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.ContractsDirName));
235
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.AddInBasesDirName));
239
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.AddInBasesDirName));
System\Addin\Hosting\AddInActivator.cs (3)
114
setup.ApplicationBase =
Path
.GetDirectoryName(token._addin.Location);
323
Path
.GetDirectoryName(pipeline._addin.Location)));
664
string contractsDir =
Path
.GetDirectoryName(_contract.Location);
System\Addin\Hosting\AddInControllerImpl.cs (2)
207
Path
.Combine(_token.PipelineRootDirectory, AddInStore.ContractsDirName)));
209
Path
.Combine(_token.PipelineRootDirectory, AddInStore.AddInAdaptersDirName)));
System\Addin\Hosting\AddInProcess.cs (1)
117
_pathToAddInProcess =
Path
.Combine(folder, exeName);
System\Addin\Hosting\AddInServer.cs (1)
56
setup.ApplicationBase =
Path
.GetDirectoryName(token._addin.Location);
System\Addin\Hosting\AddInStore.cs (35)
90
String deploymentStore =
Path
.Combine(pipelineRootFolderPath, PipelineCacheFileName);
104
String addInDir =
Path
.Combine(pipelineRootFolderPath, AddInsDirName);
199
String addInStore =
Path
.Combine(addInsFolderPath, AddInCacheFileName);
240
String addInStore =
Path
.Combine(addInsPath, AddInCacheFileName);
263
String hostAdapterDir =
Path
.Combine(path, HostAdaptersDirName);
264
String contractDir =
Path
.Combine(path, ContractsDirName);
265
String addInAdapterDir =
Path
.Combine(path, AddInAdaptersDirName);
266
String addInBaseDir =
Path
.Combine(path, AddInBasesDirName);
267
String addInDir =
Path
.Combine(path, AddInsDirName);
303
String storeName =
Path
.Combine(addInPath, AddInCacheFileName);
391
String deploymentStore =
Path
.Combine(pipelineRootFolderPath, PipelineCacheFileName);
399
String addInDir =
Path
.Combine(pipelineRootFolderPath, AddInsDirName);
509
String defaultAddInLocation =
Path
.Combine(pipelineRootFolderPath, AddInsDirName);
598
string addInFolderPath =
Path
.GetDirectoryName(addInFilePath);
640
pipeline.AddInRootDirectory =
Path
.GetDirectoryName(addInFilePath);
704
Path
.Combine(pipelineRoot, HostAdaptersDirName),
705
Path
.Combine(pipelineRoot, ContractsDirName),
706
Path
.Combine(pipelineRoot, AddInAdaptersDirName),
707
Path
.Combine(pipelineRoot, AddInBasesDirName)
742
String fullName =
Path
.Combine(path, fileName);
748
String fullName =
Path
.Combine(path, fileName);
765
String fileName =
Path
.Combine(path, storeFileName);
825
rootDir =
Path
.GetFullPath(rootDir);
836
String hostAdapterDir =
Path
.Combine(rootDir, HostAdaptersDirName);
837
String contractDir =
Path
.Combine(rootDir, ContractsDirName);
838
String addInAdapterDir =
Path
.Combine(rootDir, AddInAdaptersDirName);
839
String addInBaseDir =
Path
.Combine(rootDir, AddInBasesDirName);
840
String addInDir =
Path
.Combine(rootDir, AddInsDirName);
903
rootDir =
Path
.GetFullPath(rootDir);
954
String cacheFilePath =
Path
.Combine(rootDir, AddInCacheFileName);
1019
String cacheFileName =
Path
.Combine(path, fileName);
1210
assembly.DependencyDirs.Add(
Path
.Combine(rootDir, ContractsDirName));
1258
String directory =
Path
.GetDirectoryName(assemblyPath);
1262
String assemblyFileName =
Path
.GetFileName(assemblyPath);
1505
return
Path
.GetFullPath(path);
System\Addin\Hosting\AddInToken.cs (4)
350
string dependentPath = rootDir == null ? dependentComponent.Location :
Path
.Combine(rootDir, dependentComponent.Location);
352
String fileName =
Path
.GetFileName(component.Location);
353
String location =
Path
.GetDirectoryName(dependentPath);
355
if (File.Exists(
Path
.Combine(location, fileName)))
System\Addin\Hosting\InspectionWorker.cs (8)
77
String rootDir =
Path
.GetDirectoryName(
Path
.GetDirectoryName(_assemblyFileName));
79
rootDir =
Path
.GetDirectoryName(rootDir);
91
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.ContractsDirName));
99
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.ContractsDirName));
100
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.AddInBasesDirName));
105
dirsToLookIn.Add(
Path
.Combine(rootDir, AddInStore.AddInBasesDirName));
131
String simpleFileName =
Path
.Combine(path, simpleName);
System\Addin\Hosting\Store\AddIn.cs (1)
52
System.Diagnostics.Contracts.Contract.Requires(
Path
.IsPathRooted(fullPathToAddin));
System\Addin\Hosting\Store\PipelineComponent.cs (4)
74
if (
Path
.IsPathRooted(assemblyLocation)) {
179
System.Diagnostics.Contracts.Contract.Requires(
Path
.IsPathRooted(root));
183
System.Diagnostics.Contracts.Contract.Assert(!
Path
.IsPathRooted(_relativeLocation));
185
_location =
Path
.Combine(root, _relativeLocation);
System\Addin\Hosting\Utils.cs (6)
153
System.Diagnostics.Contracts.Contract.Requires(String.Equals(path,
Path
.GetFullPath(path)));
154
System.Diagnostics.Contracts.Contract.Requires(String.Equals(root,
Path
.GetFullPath(root)));
155
System.Diagnostics.Contracts.Contract.Ensures(!
Path
.IsPathRooted(System.Diagnostics.Contracts.Contract.Result<String>()));
160
if (lastChar !=
Path
.DirectorySeparatorChar && lastChar !=
Path
.AltDirectorySeparatorChar)
227
String simpleFileName =
Path
.Combine(path, simpleName);
System\Addin\MiniReflection\MiniAssembly.cs (3)
44
_dependencyDirs.Add(
Path
.GetDirectoryName(peFileName));
202
String fileName =
Path
.Combine(dir, libName);
206
fileName =
Path
.Combine(dir, exeName);
System\Addin\MiniReflection\MiniModule.cs (1)
39
_moduleName =
Path
.GetFileNameWithoutExtension(peFileName);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\FileExtensionsAttribute.cs (1)
73
return ExtensionsParsed.Contains(
Path
.GetExtension(fileName).ToLowerInvariant());
System.Configuration (32)
System\Configuration\AppSettingsSection.cs (2)
119
configFileDirectory = System.IO.
Path
.GetDirectoryName(configFile);
120
sourceFileFullPath = System.IO.
Path
.Combine(configFileDirectory, File);
System\Configuration\BaseConfigurationRecord.cs (1)
3809
if (String.IsNullOrEmpty(configSource) || System.IO.
Path
.IsPathRooted(configSource)) {
System\Configuration\ClientConfigPaths.cs (7)
126
applicationUri =
Path
.GetFullPath(sb.ToString());
131
applicationUri =
Path
.GetFullPath(exePath);
168
if (
Path
.IsPathRooted(dataPath)) {
194
if (
Path
.IsPathRooted(roamingFolderPath)) {
200
if (
Path
.IsPathRooted(localFolderPath)) {
328
string combinedPath =
Path
.Combine(path1, path2);
644
foreach (char c in
Path
.GetInvalidFileNameChars()) {
System\Configuration\ClientConfigurationHost.cs (6)
71
s_machineConfigFilePath =
Path
.Combine(
Path
.Combine(directory, MachineConfigSubdirectory), MachineConfigFilename);
164
_fileMap.MachineConfigFilename =
Path
.GetFullPath(fileMap.MachineConfigFilename);
170
_fileMap.ExeConfigFilename =
Path
.GetFullPath(exeFileMap.ExeConfigFilename);
174
_fileMap.RoamingUserConfigFilename =
Path
.GetFullPath(exeFileMap.RoamingUserConfigFilename);
178
_fileMap.LocalUserConfigFilename =
Path
.GetFullPath(exeFileMap.LocalUserConfigFilename);
System\Configuration\Configuration.cs (1)
231
filename = System.IO.
Path
.GetFullPath(filename);
System\Configuration\ConfigurationErrorsException.cs (5)
356
string fullPath =
Path
.GetFullPath(filename);
357
return
Path
.GetFileName(fullPath);
380
if (!
Path
.IsPathRooted(filename)) {
391
string fullPath =
Path
.GetFullPath(filename);
428
if (!
Path
.IsPathRooted(filename)) {
System\Configuration\Internal\InternalConfigHost.cs (7)
86
if (!
Path
.IsPathRooted(streamName)) {
91
streamName =
Path
.GetFullPath(streamName);
95
string result =
Path
.Combine(dirStream, configSource);
96
result =
Path
.GetFullPath(result);
197
string dir =
Path
.GetDirectoryName(streamName);
292
string dir =
Path
.GetDirectoryName(streamName);
330
return
Path
.IsPathRooted(streamName);
System\Configuration\PropertySourceInfo.cs (1)
43
filename =
Path
.GetFileName(_fileName);
System\Configuration\UrlPath.cs (2)
25
dir =
Path
.GetDirectoryName(path);
28
dir =
Path
.GetPathRoot(path);
System.Core (22)
System\Diagnostics\EventSchemaTraceListener.cs (7)
88
if (!String.IsNullOrEmpty(this.fileName) && (fileName[0] !=
Path
.DirectorySeparatorChar) && (fileName[0] !=
Path
.AltDirectorySeparatorChar) && !
Path
.IsPathRooted(fileName)) {
89
this.fileName =
Path
.Combine(
Path
.GetDirectoryName(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile), this.fileName);
662
string fileNameWithoutExt =
Path
.GetFileNameWithoutExtension(fileName);
663
string fileExt =
Path
.GetExtension(fileName);
System\IO\__Error.cs (5)
95
if ((path[0] ==
Path
.DirectorySeparatorChar) && (path[1] ==
Path
.DirectorySeparatorChar)) {
98
else if (path[1] ==
Path
.VolumeSeparatorChar) {
126
if ((path[path.Length - 1]) ==
Path
.DirectorySeparatorChar) {
130
path =
Path
.GetFileName(path);
System\IO\LogStream.cs (7)
80
String filePath =
Path
.GetFullPath(path);
120
String filePath =
Path
.GetFullPath(path);
154
__Error.WinIOError(errorCode,
Path
.GetFileName(_fileName));
387
_fileNameWithoutExt =
Path
.Combine(
Path
.GetDirectoryName(_pathSav),
Path
.GetFileNameWithoutExtension(_pathSav));
388
_fileExt =
Path
.GetExtension(_pathSav);
System\IO\Pipes\Pipe.cs (3)
507
string normalizedPipePath =
Path
.GetFullPath(@"\\.\pipe\" + pipeName);
1045
m_normalizedPipePath =
Path
.GetFullPath(@"\\" + serverName + @"\pipe\" + pipeName);
1097
m_normalizedPipePath =
Path
.GetFullPath(@"\\" + serverName + @"\pipe\" + pipeName);
System.Data (11)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (3)
64
string assemblyDirectory =
Path
.GetDirectoryName(assemblyLocation);
65
return
Path
.Combine(assemblyDirectory, relativePathToExtensionsDirectory);
197
string assemblyFullPath =
Path
.Combine(this.extensionsDirectory, assemblyName + ".dll");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (3)
96
string extension =
Path
.GetExtension(resourceNames[i]);
170
return ".xaml".Equals(
Path
.GetExtension(resourceName), StringComparison.OrdinalIgnoreCase);
181
resourceName =
Path
.GetFileNameWithoutExtension(resourceName);
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2070
return
Path
.GetFullPath(filename);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
424
static private readonly char[] InvalidPathChars =
Path
.GetInvalidPathChars();
fx\src\data\System\Data\xmlsaver.cs (3)
927
this.filePath =
Path
.GetDirectoryName(fs.Name);
928
this.fileName =
Path
.GetFileNameWithoutExtension(fs.Name);
929
this.fileExt =
Path
.GetExtension(fs.Name);
System.Data.Entity (9)
System\Data\Common\EntityUtil.cs (1)
2048
return
Path
.GetFullPath(filename);
System\Data\Metadata\MetadataArtifactLoader.cs (3)
450
if (path.Length == 2 && path[1] == System.IO.
Path
.VolumeSeparatorChar)
452
path = path + System.IO.
Path
.DirectorySeparatorChar;
479
path = System.IO.
Path
.GetFullPath(path);
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (1)
274
string fullPath = System.IO.
Path
.Combine(directory, fileName);
System\Data\SqlClient\SqlProviderServices.cs (3)
828
logFileName =
Path
.Combine(directory.FullName, String.Concat(
Path
.GetFileNameWithoutExtension(dataFileName), "_log.ldf"));
839
char [] strippedFileNameChars =
Path
.GetFileNameWithoutExtension(toUpperFileName).ToCharArray();
System\Data\SqlClient\SqlProviderUtilities.cs (1)
320
AppendStringLiteral(
Path
.GetFileName(path));
System.Data.Entity.Design (7)
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
221
string temp =
Path
.GetTempFileName() + XmlConstants.CSpaceSchemaExtension;
415
target =
Path
.Combine(
Path
.GetTempPath(),
Path
.GetTempFileName());
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
117
tempFiles = new TempFileCollection(
Path
.GetTempPath());
118
string filename =
Path
.Combine(tempFiles.TempDir, "EdmCodeGenFixup-" + Guid.NewGuid().ToString() + ".tmp");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
71
System.IO.
Path
.GetFileName( _targetFilePath ),
System.Data.Linq (4)
SqlClient\SqlBuilder.cs (2)
25
sb.AppendFormat(" ON PRIMARY (NAME='{0}', FILENAME='{1}')",
Path
.GetFileName(dataFilename), dataFilename);
26
sb.AppendFormat(" LOG ON (NAME='{0}', FILENAME='{1}')",
Path
.GetFileName(logFilename), logFilename);
SqlClient\SqlProvider.cs (2)
601
catalog =
Path
.GetFullPath(filename);
642
string createdb = SqlBuilder.GetCreateDatabaseCommand(catalog, filename,
Path
.ChangeExtension(filename, ".ldf"));
System.Data.Services.Design (7)
System\Data\EntityModel\DataServiceBuildProvider.cs (4)
61
string extension = IO.
Path
.GetExtension(child.VirtualPath);
120
errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.
Path
.GetFileName(mapFilePath), errorMessage);
355
string edmxFilePath = IO.
Path
.Combine(IO.
Path
.GetDirectoryName(this.dataSvcMapFilePath), this.edmxSchemaFileName);
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
276
tempFiles = new TempFileCollection(
Path
.GetTempPath());
277
string filename =
Path
.Combine(tempFiles.TempDir, "EdmCodeGenFixup-" + Guid.NewGuid().ToString() + ".tmp");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
137
System.IO.
Path
.GetFileName(_targetFilePath),
System.Data.SqlXml (3)
System\Xml\Xsl\Xslt\Scripts.cs (3)
285
asmPath =
Path
.ChangeExtension(asmPath, "." + GetLanguageName(lastScript.compilerInfo) +
Path
.GetExtension(asmPath));
373
fileName =
Path
.GetFileNameWithoutExtension(fileName);
System.Drawing (10)
commonui\System\Drawing\Bitmap.cs (2)
61
filename =
Path
.GetFullPath(filename);
97
filename =
Path
.GetFullPath(filename);
commonui\System\Drawing\BitmapSelector.cs (2)
58
return
Path
.ChangeExtension(filePath, Suffix +
Path
.GetExtension(filePath));
commonui\System\Drawing\Icon.cs (1)
251
filePath =
Path
.GetFullPath(filePath);
commonui\System\Drawing\Image.cs (1)
186
filename =
Path
.GetFullPath(filename);
commonui\System\Drawing\IntSecurity.cs (1)
53
full =
Path
.GetFullPath(fileName);
commonui\System\Drawing\ToolboxBitmapAttribute.cs (3)
318
string ext =
Path
.GetExtension(imageFile);
428
if (String.Compare(
Path
.GetExtension(imageName), ".ico", true, CultureInfo.CurrentCulture) == 0) {
431
else if (String.Compare(
Path
.GetExtension(imageName), ".bmp", true, CultureInfo.CurrentCulture) == 0) {
System.IdentityModel.Selectors (3)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (3)
243
string v2RegPath =
Path
.Combine(
274
return
Path
.Combine(
295
implDllFullPath =
Path
.Combine(
System.IO.Log (1)
System\IO\Log\FileRecordSequence.cs (1)
41
this.log = new SimpleFileLog(
Path
.GetFullPath(path), size);
System.Management (7)
Instrumentation\ManagementInstaller.cs (1)
142
mofFile =
Path
.GetFileName(mofFile);
Instrumentation\SchemaRegistration.cs (4)
141
string DataDirectory {get {return
Path
.Combine(WMICapabilities.FrameworkDirectory, NamespaceName);} }
142
string MofPath {get {return
Path
.Combine(DataDirectory, DecoupledProviderInstanceName + ".mof");} }
143
string CodePath {get {return
Path
.Combine(DataDirectory, DecoupledProviderInstanceName + ".cs");} }
144
string PrecompiledAssemblyPath {get {return
Path
.Combine(DataDirectory, DecoupledProviderInstanceName + ".dll");} }
Instrumentation\WMICapabilities.cs (2)
134
return
Path
.Combine(InstallationDirectory, FrameworkSubDirectory);
168
string fastproxPath =
Path
.Combine(Environment.SystemDirectory, @"wbem\fastprox.dll");
System.Net (2)
net\PeerToPeer\Collaboration\Peer.cs (1)
296
string path =
Path
.Combine( Environment.CurrentDirectory, Process.GetCurrentProcess().ProcessName + ".exe");
net\PeerToPeer\UnsafePeerToPeerMethods.cs (1)
268
string dllFileName =
Path
.Combine(Environment.SystemDirectory, UnsafeP2PNativeMethods.P2P);
System.Runtime.Caching (3)
System\Caching\FileChangeNotificationSystem.cs (2)
85
string dir =
Path
.GetDirectoryName(filePath);
133
string dir =
Path
.GetDirectoryName(filePath);
System\Caching\PerfCounters.cs (1)
47
appId =
Path
.GetFileNameWithoutExtension(sb.ToString());
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
128
string assemblyName = System.IO.
Path
.GetFileName(assembly.Location);
System.ServiceModel (5)
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (2)
22
String path =
Path
.GetDirectoryName(strAssemblyManifestFileName);
80
String path =
Path
.GetDirectoryName(strAssemblyManifestFileName);
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (2)
45
tempPath =
Path
.GetTempPath();
158
tempPath =
Path
.GetTempPath();
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
76
string assemblyName = System.IO.
Path
.GetFileName(assembly.Location);
System.ServiceModel.Activation (6)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (5)
154
string xamlFileName =
Path
.GetFileNameWithoutExtension(VirtualPathUtility.GetFileName(this.xamlVirtualFile));
229
string activityName =
Path
.GetFileNameWithoutExtension(filePath).ToUpper(CultureInfo.InvariantCulture);
248
string virtualFileFolder = string.Format(CultureInfo.InvariantCulture, "~\\{0}",
Path
.Combine(SupportedVersionsFolder, xamlFileName));
272
string path =
Path
.Combine(SupportedVersionsFolder, xamlFileName,
Path
.GetFileName(file));
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
51
string xamlFileName =
Path
.GetFileNameWithoutExtension(VirtualPathUtility.GetFileName(xamlVirtualFile));
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
686
this.DurableInstancingOptions.ScopeName = XName.Get(XmlConvert.EncodeLocalName(
Path
.GetFileName(virtualPathExtension.VirtualPath)),
System.Web (170)
CachedPathData.cs (2)
561
if (_physicalPath[_physicalPath.Length-1] == System.IO.
Path
.DirectorySeparatorChar
568
if (physicalPath[physicalPath.Length-1] == System.IO.
Path
.DirectorySeparatorChar
Compilation\AssemblyBuilder.cs (8)
120
string baseFileName =
Path
.GetFileName(basePath);
352
string resourceFile =
Path
.Combine(resourceDir, name);
388
_tempFilePhysicalPathPrefix =
Path
.Combine(_tempFiles.TempDir, OutputAssemblyName) + ".";
684
dir =
Path
.Combine(dir, CultureName);
686
compilParams.OutputAssembly =
Path
.Combine(dir, OutputAssemblyName + ".resources.dll");
689
compilParams.OutputAssembly =
Path
.Combine(dir, OutputAssemblyName + ".dll");
1075
string baseAssemblyFile =
Path
.Combine(dir, OutputAssemblyName + ".dll");
1288
generatedCodeFile =
Path
.Combine(_generatedFilesDir, generatedCodeFile);
Compilation\AssemblyResolver.cs (1)
461
searchPaths.Add(
Path
.GetDirectoryName(a.Location));
Compilation\BaseTemplateBuildProvider.cs (1)
172
string assemblyFilename =
Path
.GetFileName(results.PathToAssembly);
Compilation\BrowserCapabilitiesCompiler.cs (1)
182
string extension =
Path
.GetExtension(fileBase.Name);
Compilation\BuildManager.cs (21)
400
_webHashFilePath =
Path
.Combine(HttpRuntime.CodegenDirInternal, "hash\\hash.web");
512
string targetBinDir =
Path
.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName);
526
string licAssemblyPath =
Path
.Combine(HttpRuntime.BinDirectoryInternal, LicensesAssemblyName + ".dll");
764
string preStartInitListPath =
Path
.Combine(HttpRuntime.CodegenDirInternal, "preStartInitList.web");
2606
string targetBinDir =
Path
.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName);
2624
string precompMarkerFile =
Path
.Combine(_precompTargetPhysicalDir, precompMarkerFileName);
2645
string precompMarkerFile =
Path
.Combine(appRoot, precompMarkerFileName);
2767
string physicalPath =
Path
.Combine(_theBuildManager._precompTargetPhysicalDir, path);
2770
string physicalDir =
Path
.GetDirectoryName(physicalPath);
2867
string appPhysicalDir =
Path
.Combine(HttpRuntime.AppDomainAppPathInternal, HttpRuntime.ThemesDirectoryName);
2873
string themeDirName =
Path
.GetFileName(themeDirPath);
2901
string destPhysicalSubDir =
Path
.Combine(destPhysicalDir, child.Name);
2956
string fromSubDir =
Path
.Combine(fromDir, fileData.Name);
2957
string toSubDir =
Path
.Combine(toDir, fileData.Name);
2965
string extension =
Path
.GetExtension(fileData.Name);
2975
string sourcePhysicalPath =
Path
.Combine(fromDir, fileData.Name);
2976
string destPhysicalPath =
Path
.Combine(toDir, fileData.Name);
3340
resxDir =
Path
.Combine(HttpRuntime.CodegenDirInternal, CodegenResourceDirectoryName);
3353
string userCachePath =
Path
.Combine(HttpRuntime.CodegenDirInternal, "UserCache");
3370
string path =
Path
.Combine(UserCachePath, fileName);
3373
if (
Path
.GetDirectoryName(path) != UserCachePath) {
Compilation\BuildResult.cs (3)
1258
_ccuPreservationFileName =
Path
.Combine(HttpRuntime.CodegenDirInternal, _ccuPreservationFileName);
1281
preservationFileName =
Path
.Combine(HttpRuntime.CodegenDirInternal, preservationFileName);
1308
ccuPreservationFileName =
Path
.Combine(HttpRuntime.CodegenDirInternal, ccuPreservationFileName);
Compilation\BuildResultCache.cs (11)
52
string assemblyName = Util.GetAssemblyNameFromFileName(
Path
.GetFileName(assemblyPath));
372
var pdbPath =
Path
.ChangeExtension(f.FullName, ".pdb");
486
cacheKey =
Path
.Combine(_cacheDir, cacheKey);
647
string baseName =
Path
.GetDirectoryName(f.FullName) +
Path
.DirectorySeparatorChar +
Path
.GetFileNameWithoutExtension(f.FullName);
751
String hashDirPath =
Path
.GetDirectoryName(hashFilePath);
777
string subDirName =
Path
.GetFileNameWithoutExtension(subDir);
791
_satelliteDirectories.Add(
Path
.Combine(_cacheDir, subDir));
809
string fullAssemblyPath =
Path
.Combine(satelliteDir, satelliteAssemblyName);
834
string ext =
Path
.GetExtension(fileData.Name);
Compilation\PreservationFileReader.cs (3)
39
Debug.Trace("PreservationFileReader", "Can't find preservation file " +
Path
.GetFileName(preservationFile));
121
Debug.Trace("PreservationFileReader",
Path
.GetFileName(preservationFile) +
137
Debug.Trace("PreservationFileReader",
Path
.GetFileName(preservationFile) +
Compilation\ResXBuildProvider.cs (1)
24
reader.BasePath =
Path
.GetDirectoryName(physicalPath);
Compilation\ThemeDirectoryCompiler.cs (1)
150
string extension =
Path
.GetExtension(child.Name);
Compilation\WebReferencesBuildProvider.cs (1)
115
string fileName = System.IO.
Path
.ChangeExtension(UrlPath.GetFileName(child.VirtualPath), null);
Configuration\HttpCapabilitiesSectionHandler.cs (2)
308
configurationDirectory =
Path
.GetDirectoryName(ConfigurationErrorsException.GetFilename(srcAttribute));
321
string fullFilename =
Path
.Combine(configurationDirectory, srcFilename);
Configuration\HttpConfigurationSystem.cs (4)
287
s_MachineConfigurationDirectory =
Path
.Combine(MsCorLibDirectory, MachineConfigSubdirectory);
314
s_MachineConfigurationFilePath =
Path
.Combine(MachineConfigurationDirectory, MachineConfigFilename);
324
s_RootWebConfigurationFilePath =
Path
.Combine(MachineConfigurationDirectory, RootWebConfigFilename);
334
s_RootWebConfigurationFilePath =
Path
.Combine(MachineConfigurationDirectory, RootWebConfigFilename);
Configuration\RemoteWebConfigurationHost.cs (1)
171
new VirtualDirectoryMapping(
Path
.GetDirectoryName(physicalFilePath), isRootApp));
Configuration\RemoteWebConfigurationHostServer.cs (1)
198
currentFilePath = System.IO.
Path
.Combine(currentFilePath, HttpConfigurationSystem.WebConfigFileName);
Configuration\UserMapPath.cs (5)
39
_machineConfigFilename =
Path
.GetFullPath(fileMap.MachineConfigFilename);
51
_rootWebConfigFilename =
Path
.Combine(
Path
.GetDirectoryName(_machineConfigFilename), "web.config");
78
_rootWebConfigFilename =
Path
.Combine(rootWebMapping.PhysicalDirectory, rootWebMapping.ConfigFileBaseName);
139
physicalPath =
Path
.Combine(mapping.PhysicalDirectory, childPart);
Configuration\VirtualDirectoryMapping.cs (4)
135
string configFilename =
Path
.Combine(_physicalDirectory, _configFileBaseName);
136
string fullConfigFilename =
Path
.GetFullPath(configFilename);
137
if (
Path
.GetDirectoryName(fullConfigFilename) != _physicalDirectory ||
138
Path
.GetFileName(fullConfigFilename) != _configFileBaseName ||
Configuration\WebConfigurationHost.cs (4)
215
_rootWebConfigFile =
Path
.Combine(
Path
.GetDirectoryName(_machineConfigFile), "web.config");
492
string path =
Path
.Combine(directory, baseName);
495
Path
.GetFullPath(path);
DataAccess\SqlConnectionHelper.cs (7)
100
return
Path
.Combine(HttpRuntime.AppDomainAppPath, HttpRuntime.DataDirectoryName);
112
appPath =
Path
.GetDirectoryName(exeName);
118
dataDir =
Path
.Combine(appPath, HttpRuntime.DataDirectoryName);
152
fullFileName =
Path
.Combine(dataDir, partialFileName);
217
char[] strippedFileNameChars =
Path
.GetFileNameWithoutExtension(fullFileName).ToCharArray();
227
tempFileName =
Path
.Combine(
Path
.GetDirectoryName(fullFileName), strippedFileName + "_TMP" + s_strSqlExprFileExt);
ErrorFormatter.cs (1)
1068
assemblyDir =
Path
.GetDirectoryName(assemblyDir);
FileChangesMonitor.cs (17)
271
string path =
Path
.Combine(DirectoryMonitor.Directory, FileNameLong);
659
path =
Path
.Combine(Directory, file);
959
if (fileName.Length == dirNameLength || fileName[dirNameLength] ==
Path
.DirectorySeparatorChar) {
1072
string path =
Path
.Combine(Directory, fileMon.FileNameLong);
1122
string path =
Path
.Combine(Directory, fileName);
1134
string fullPath =
Path
.Combine(Directory, fileName);
1443
return (fileName != null) ? message +
Path
.GetDirectoryName(fileName) : message;
1497
string path =
Path
.GetFullPath(alias);
1507
&& fullPathName[_appPathInternal.Length] ==
Path
.DirectorySeparatorChar) {
1572
else if (dirName.Length > specialDirName.Length && dirName[specialDirName.Length] ==
Path
.DirectorySeparatorChar) {
1727
file =
Path
.GetFileName(fullPathName);
1832
file =
Path
.GetFileName(fullPathName);
1974
string name =
Path
.GetFileName(dir);
1975
dir =
Path
.GetDirectoryName(dir);
2124
file =
Path
.GetFileName(fullPathName);
2185
file =
Path
.GetFileName(fullPathName);
2250
file =
Path
.GetFileName(fullPathName);
Hosting\ApplicationHost.cs (2)
47
if (!StringUtil.StringEndsWith(physicalDir,
Path
.DirectorySeparatorChar))
48
physicalDir = physicalDir +
Path
.DirectorySeparatorChar;
Hosting\ApplicationManager.cs (9)
891
if (!StringUtil.StringEndsWith(physicalPath,
Path
.DirectorySeparatorChar))
892
physicalPath = physicalPath +
Path
.DirectorySeparatorChar;
1405
if (!
Path
.IsPathRooted(tempDirectory)) {
1435
tempDirectory =
Path
.Combine(RuntimeEnvironment.GetRuntimeDirectory(), HttpRuntime.codegenDirName);
1446
tempDirectory =
Path
.GetTempPath();
1448
tempDirectory =
Path
.Combine(tempDirectory, HttpRuntime.codegenDirName);
1452
String binDir =
Path
.Combine(tempDirectory, simpleAppName);
1742
fileMap.VirtualDirectories.Add(subDir, new VirtualDirectoryMapping(
Path
.GetFullPath(dir), true));
1750
fileMap.VirtualDirectories.Add(subDir, new VirtualDirectoryMapping(
Path
.GetFullPath(dir), true));
Hosting\MapPathBasedVirtualPathProvider.cs (1)
123
appRoot =
Path
.GetFullPath(HttpRuntime.AppDomainAppPathInternal);
HttpApplicationFactory.cs (1)
189
return
Path
.Combine(HttpRuntime.AppDomainAppPathInternal, applicationFileName);
HttpInputStream.cs (1)
220
String tempDir =
Path
.Combine(HttpRuntime.CodegenDirInternal, "uploads");
HttpPostedFile.cs (1)
104
if (!
Path
.IsPathRooted(filename)) {
HttpRequest.cs (1)
2901
if (!System.IO.
Path
.IsPathRooted(filename)) {
HttpRuntime.cs (15)
72
private static string DirectorySeparatorString = new string(
Path
.DirectorySeparatorChar, 1);
73
private static string DoubleDirectorySeparatorString = new string(
Path
.DirectorySeparatorChar, 2);
150
String fullPath = installDir +
Path
.DirectorySeparatorChar + ModName.ENGINE_FULL_NAME;
349
string dataDirectory =
Path
.Combine(_appDomainAppPath, DataDirectoryName);
896
if (!
Path
.IsPathRooted(tempDirectory)) {
960
tempDirectory =
Path
.Combine(s_installDirectory, codegenDirName);
979
tempDirectory =
Path
.GetTempPath();
981
tempDirectory =
Path
.Combine(tempDirectory, codegenDirName);
986
codegenBase =
Path
.Combine(tempDirectory, simpleAppName);
1243
string appOfflineFile =
Path
.Combine(_theRuntime._appDomainAppPath, AppOfflineFileName);
2670
return
Path
.GetFileName(path);
2871
string clientScriptPhysicalPath = System.IO.
Path
.Combine(AspInstallDirectoryInternal, AspNetClientFilesSubDirectory);
3032
get { return
Path
.Combine(_theRuntime._appDomainAppPath, BinDirectoryName) +
Path
.DirectorySeparatorChar; }
3524
_DefaultPhysicalPathOnMapPathFailure =
Path
.Combine(_appDomainAppPath, "NOT_A_VALID_FILESYSTEM_PATH");
Management\regiisutil.cs (7)
109
IRegisterCreateITypeLib typeLib = (IRegisterCreateITypeLib)converter.ConvertAssemblyToTypeLib(webAssembly, System.IO.
Path
.Combine(binaryDirectory, "AspNetMMCExt.tlb"), 0, eventHandler);
119
File.Delete(System.IO.
Path
.Combine(binaryDirectory, "AspNetMMCExt.tlb"));
268
if (!
Path
.IsPathRooted(dirName))
269
dirName =
Path
.Combine(Environment.CurrentDirectory, dirName);
360
if (!
Path
.IsPathRooted(fileName))
361
fileName =
Path
.Combine(Environment.CurrentDirectory, fileName);
363
if (!System.IO.Directory.Exists(System.IO.
Path
.GetDirectoryName(fileName)))
Management\SqlServices.cs (3)
196
string fullpath =
Path
.Combine(HttpRuntime.AspInstallDirectory, install ? SESSION_STATE_INSTALL_FILE : SESSION_STATE_UNINSTALL_FILE);
392
string fullpath =
Path
.Combine(HttpRuntime.AspInstallDirectory, file);
539
string fullpath =
Path
.Combine(HttpRuntime.AspInstallDirectory, sqlFile);
MimeMapping.cs (3)
37
private static readonly char[] _pathSeparatorChars = new char[] {
Path
.DirectorySeparatorChar,
Path
.AltDirectorySeparatorChar,
Path
.VolumeSeparatorChar }; // from Path.GetFileName()
Security\AuthStoreRoleProvider.cs (1)
552
appPath = System.IO.
Path
.GetDirectoryName(exeName);
Security\FileAuthorizationModule.cs (1)
468
appRoot =
Path
.GetFullPath(HttpRuntime.AppDomainAppPathInternal);
UI\PageParser.cs (1)
114
inputFile =
Path
.GetFullPath(inputFile);
UI\TemplateParser.cs (3)
2450
string currentPhysicalDir =
Path
.GetDirectoryName(
2452
newPhysicalPath =
Path
.GetFullPath(
Path
.Combine(currentPhysicalDir, filename.Replace('/', '\\')));
UI\Util.cs (3)
298
string dummyFile =
Path
.Combine(dir, "~AspAccessCheck_" +
1161
string fileNameNoExt =
Path
.GetFileNameWithoutExtension(virtualPath);
1360
if (StringUtil.EqualsIgnoreCase(
Path
.GetExtension(fileName), ".dll"))
UI\WebControls\AccessDataSource.cs (1)
157
return
Path
.GetExtension(PhysicalDataFile) == Access2007FileExtension;
UI\WebControls\FileUpload.cs (1)
139
fileName =
Path
.GetFileName(fullFileName);
Util\FileEnumerator.cs (1)
99
_path =
Path
.GetFullPath(path);
Util\FileUtil.cs (11)
91
int nextSeparator = fileName.IndexOf(
Path
.DirectorySeparatorChar, existingDir.Length + 1);
110
&& filePath[appRoot.Length] ==
Path
.DirectorySeparatorChar) {
151
dir =
Path
.GetFullPath(dir);
224
private static readonly char[] s_invalidPathChars =
Path
.GetInvalidPathChars();
248
String.Compare(physicalPath,
Path
.GetFullPath(physicalPath),
324
private static Char[] _invalidFileNameChars =
Path
.GetInvalidFileNameChars();
497
string currentParentDir =
Path
.GetDirectoryName(fullPath);
515
relativePathLong = fd.cFileName +
Path
.DirectorySeparatorChar + relativePathLong;
517
relativePathShort = fd.cAlternateFileName +
Path
.DirectorySeparatorChar + relativePathShort;
520
relativePathShort = fd.cFileName +
Path
.DirectorySeparatorChar + relativePathShort;
523
currentParentDir =
Path
.GetDirectoryName(currentParentDir);
Util\PathUtil.cs (1)
24
return
Path
.Combine(_system32Path, filename);
Util\UrlPath.cs (2)
409
dir =
Path
.GetDirectoryName(path);
411
dir =
Path
.GetPathRoot(path);
System.Web.DataVisualization (5)
WebForm\ChartWebControl.cs (1)
642
_designTimeChart =
Path
.GetTempFileName() + ".bmp";
WebForm\General\ChartHttpHandler.cs (4)
363
String appDir =
Path
.GetDirectoryName(HttpContext.Current.Request.CurrentExecutionFilePath ?? "").Replace("\\","/");
381
String ext =
Path
.GetExtension(resourceUrl);
1283
this.Url =
Path
.GetTempPath();
1284
this.Directory =
Path
.GetTempPath();
System.Web.Entity.Design (2)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (2)
58
return
Path
.ChangeExtension(filePath, Suffix +
Path
.GetExtension(filePath));
System.Web.Extensions (23)
ClientServices\ConnectivityStatus.cs (2)
37
string path =
Path
.Combine(System.Windows.Forms.Application.UserAppDataPath, "AppIsOffline");
46
string path =
Path
.Combine(System.Windows.Forms.Application.UserAppDataPath, "AppIsOffline");
ClientServices\Providers\SqlHelper.cs (1)
299
return
Path
.Combine(Application.UserAppDataPath, GetPartialDBFileName(username, extension));
Compilation\WCFBuildProvider.cs (5)
100
string extension = IO.
Path
.GetExtension(child.VirtualPath);
186
errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.
Path
.GetFileName(mapFilePath), errorMessage);
229
System.IO.
Path
.GetFileName(mapFilePath) : generatedNamespace;
246
errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.
Path
.GetFileName(mapFilePath), errorMessage);
567
mapping = new System.Web.Configuration.VirtualDirectoryMapping(System.IO.
Path
.GetDirectoryName(mapFilePath), true, toolConfigFile);
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
147
if (String.Equals(System.IO.
Path
.GetExtension(fileName), ".asmx", StringComparison.OrdinalIgnoreCase))
Compilation\WCFModel\DataSvcMapFileLoader.cs (4)
91
return File.ReadAllBytes(
Path
.Combine(
Path
.GetDirectoryName(_mapFilePath), name));
96
return File.ReadAllBytes(
Path
.Combine(
Path
.GetDirectoryName(_mapFilePath), name));
Compilation\WCFModel\ExternalFile.cs (4)
139
if (fileName.IndexOfAny(
Path
.GetInvalidFileNameChars()) >= 0 || fileName.IndexOfAny(new Char[] {
Path
.DirectorySeparatorChar,
Path
.AltDirectorySeparatorChar,
Path
.VolumeSeparatorChar }) >= 0)
Compilation\WCFModel\MetadataFile.cs (1)
501
int i = ns.LastIndexOfAny(
Path
.GetInvalidFileNameChars());
Compilation\WCFModel\SvcMapFileLoader.cs (4)
91
return File.ReadAllBytes(
Path
.Combine(
Path
.GetDirectoryName(_mapFilePath), name));
96
return File.ReadAllBytes(
Path
.Combine(
Path
.GetDirectoryName(_mapFilePath), name));
Script\Services\WebServiceData.cs (1)
61
string name =
Path
.GetFileName(appRelativePath);
System.Web.Mobile (2)
UI\MobileControls\Design\ImageDesigner.cs (1)
117
String extension =
Path
.GetExtension(imageUriString);
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (1)
36
_path =
Path
.GetTempPath() + Guid.NewGuid().ToString() + ".bmp";
System.Web.Services (18)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (3)
39
get { return
Path
.Combine(this.actualPath, this.Href); }
176
string fullPath =
Path
.GetFullPath(
Path
.Combine(path, file));
System\Web\Services\Discovery\ContractReference.cs (1)
161
return
Path
.ChangeExtension(fileName, ".wsdl");
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (8)
317
string extension =
Path
.GetExtension(path);
338
string topLevelPath =
Path
.GetDirectoryName(topLevelFilename);
359
Stream docFile = File.OpenRead(
Path
.Combine(topLevelPath, results.Results[i].Filename));
450
string currentDir =
Path
.GetDirectoryName(
Path
.GetFullPath(relativeTo));
479
string topLevelFullPath =
Path
.Combine(directory, topLevelFilename);
497
filename = GetUniqueFilename(filenames,
Path
.GetFullPath(
Path
.Combine(directory, filename)));
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (1)
69
return
Path
.ChangeExtension(filename, ".disco"); // [Microsoft] change default extension
System\Web\Services\Discovery\DiscoveryReference.cs (2)
108
if (!FindChar(c,
Path
.InvalidPathChars))
115
return
Path
.GetFileName(name);
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (2)
72
string discoFileDirectory =
Path
.GetDirectoryName(physicalPath);
73
string discoFileName =
Path
.GetFileName(physicalPath);
System\Web\Services\Discovery\SchemaReference.cs (1)
156
return
Path
.ChangeExtension(fileName, ".xsd");
System.Windows.Forms (22)
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (2)
58
return
Path
.ChangeExtension(filePath, Suffix +
Path
.GetExtension(filePath));
winforms\Managed\System\Resources\ResXDataNode.cs (3)
187
if(!
Path
.IsPathRooted(fileRefDetails[0]) && basePath != null) {
188
fileRefFullPath =
Path
.Combine(basePath, fileRefDetails[0]);
905
private static string NetFrameworkPath =
Path
.Combine(Environment.GetEnvironmentVariable("SystemRoot"), "Microsoft.Net\\Framework");
winforms\Managed\System\Resources\ResXFileRef.cs (3)
139
} else if (path1[i] ==
Path
.DirectorySeparatorChar) {
154
if (path1[i] ==
Path
.DirectorySeparatorChar) {
155
relPath.Append(".."+
Path
.DirectorySeparatorChar);
winforms\Managed\System\WinForms\Application.cs (2)
646
startupPath =
Path
.GetDirectoryName(sb.ToString());
1416
clrPath =
Path
.GetDirectoryName(typeof(object).Module.FullyQualifiedName);
winforms\Managed\System\WinForms\Clipboard.cs (1)
509
string temp =
Path
.GetFullPath(path);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
504
string themeFilename = System.IO.
Path
.GetFileName(System.Windows.Forms.VisualStyles.VisualStyleInformation.ThemeFilename);
winforms\Managed\System\WinForms\DataObject.cs (1)
1855
string fullPath =
Path
.GetFullPath(s);
winforms\Managed\System\WinForms\FileDialog.cs (2)
873
if ((options & OPTION_ADDEXTENSION) != 0 && !
Path
.HasExtension(fileName)) {
877
string currentExtension =
Path
.GetExtension(fileName);
winforms\Managed\System\WinForms\Help.cs (1)
421
string ext =
Path
.GetExtension(file == null ? url : file.LocalPath + file.Fragment).ToLower(CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\ListView.cs (1)
4802
string tempDirName = System.IO.
Path
.GetTempPath();
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
275
return System.IO.
Path
.GetFileName(fullPath);
winforms\Managed\System\WinForms\PictureBox.cs (1)
192
path =
Path
.GetFullPath(path);
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (1)
1520
string themeFileName = System.IO.
Path
.GetFileName(VisualStyleInformation.ThemeFilename);
winforms\Managed\System\WinForms\WebBrowser.cs (1)
652
string mshtmlPath =
Path
.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "mshtml.dll");
winforms\Managed\System\WinForms\WinFormsSecurity.cs (1)
493
full =
Path
.GetFullPath(fileName);
System.Workflow.Activities (18)
Common\CompModHelpers.cs (3)
92
int length =
Path
.GetInvalidPathChars().GetLength(0) + 5;
94
Path
.GetInvalidPathChars().CopyTo(invalidChars, 0);
581
path =
Path
.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Designers\StateDesigner.cs (9)
2637
if (value != null && value.Length > 0 && value.Contains(
Path
.DirectorySeparatorChar.ToString()) &&
Path
.IsPathRooted(value))
2668
if (value != null && value.Length > 0 && value.Contains(
Path
.DirectorySeparatorChar.ToString()) &&
Path
.IsPathRooted(value))
2734
relativePath = relativePath.Replace(
Path
.AltDirectorySeparatorChar,
Path
.DirectorySeparatorChar);
2735
if (!relativePath.Contains(
Path
.DirectorySeparatorChar.ToString()))
2736
relativePath = "." +
Path
.DirectorySeparatorChar + relativePath;
2743
if (path.Contains(
Path
.DirectorySeparatorChar.ToString()) && directory.Length > 0)
Rules\Helpers.cs (6)
115
rulesFileName =
Path
.Combine(
Path
.GetDirectoryName(loader.FileName),
Path
.GetFileNameWithoutExtension(loader.FileName));
154
rulesFileName =
Path
.Combine(
Path
.GetDirectoryName(loader.FileName),
Path
.GetFileNameWithoutExtension(loader.FileName));
System.Workflow.ComponentModel (79)
AuthoringOM\Compiler\CompileXomlTask.cs (28)
581
xomlFilesPaths[index] =
Path
.Combine(ProjectDirectory, this.WorkflowMarkupFiles[index].ItemSpec);
600
error.FileName =
Path
.Combine(this.ProjectDirectory, error.FileName);
612
error.FileName =
Path
.Combine(this.ProjectDirectory, error.FileName);
786
itemSpecs[i] =
Path
.Combine(projDir, taskItems[i].ItemSpec);
828
compilerOptions.AppendFormat(" /keyfile:\"{0}\"",
Path
.Combine(this.ProjectDirectory, this.KeyFile));
847
Path
.Combine(this.ProjectDirectory, resourceFile.ItemSpec), manifestResourceName);
852
Path
.Combine(this.ProjectDirectory, resourceFile.ItemSpec));
1068
string extension =
Path
.GetExtension(fileName);
1079
string extension =
Path
.GetExtension(fileName);
1105
string extension =
Path
.GetExtension(fileName);
1116
string extension =
Path
.GetExtension(fileName);
1181
string everettCompatibleDirectoryName = CreateManifestResourceName.MakeValidEverettIdentifier(
Path
.GetDirectoryName(info.cultureNeutralFilename));
1184
if (0 == String.Compare(
Path
.GetExtension(info.cultureNeutralFilename), ".resx", StringComparison.OrdinalIgnoreCase))
1186
manifestName +=
Path
.Combine(everettCompatibleDirectoryName,
Path
.GetFileNameWithoutExtension(info.cultureNeutralFilename));
1189
manifestName = manifestName.Replace(
Path
.DirectorySeparatorChar, '.');
1190
manifestName = manifestName.Replace(
Path
.AltDirectorySeparatorChar, '.');
1200
manifestName +=
Path
.Combine(everettCompatibleDirectoryName,
Path
.GetFileName(info.cultureNeutralFilename));
1203
manifestName = manifestName.Replace(
Path
.DirectorySeparatorChar, '.');
1204
manifestName = manifestName.Replace(
Path
.AltDirectorySeparatorChar, '.');
1209
manifestName = info.culture +
Path
.DirectorySeparatorChar + manifestName;
1236
string baseFileNameWithCulture =
Path
.GetFileNameWithoutExtension(name);
1239
string cultureName =
Path
.GetExtension(baseFileNameWithCulture);
1258
string extension =
Path
.GetExtension(name);
1259
string baseFileName =
Path
.GetFileNameWithoutExtension(baseFileNameWithCulture);
1260
string baseFolder =
Path
.GetDirectoryName(name);
1262
info.cultureNeutralFilename =
Path
.Combine(baseFolder, fileName);
AuthoringOM\Compiler\XomlCompiler.cs (7)
507
createdTempFileName =
Path
.GetTempFileName();
518
createdDirectoryName =
Path
.GetTempPath() + "\\" + Guid.NewGuid();
702
string mscorlibName =
Path
.GetFileName(mscorlibPath);
716
if ((mscorlibIndex == -1) && (string.Compare(mscorlibName,
Path
.GetFileName(assemblyPath), StringComparison.OrdinalIgnoreCase) == 0))
911
localAssemblyPath = clonedParams.OutputAssembly = tempAssemblyDirectory + "\\" +
Path
.GetFileName(clonedParams.OutputAssembly);
921
string pdbFilename =
Path
.GetFileNameWithoutExtension(localAssemblyPath) + ".pdb";
922
clonedParams.TempFiles.AddFile(
Path
.GetDirectoryName(localAssemblyPath) + "\\" + pdbFilename, true);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (5)
388
string userAssemblyFileName =
Path
.GetFileName(userAssembly);
389
string standardAssemblyFileName =
Path
.GetFileName(assemblyPath);
440
trimCharsArray = new char[] {
Path
.DirectorySeparatorChar };
519
string trialFileName = path +
Path
.DirectorySeparatorChar + realFileName;
535
fullPathName = fullPathName.TrimEnd(new char[] {
Path
.DirectorySeparatorChar });
AuthoringOM\Compiler\XomlCompilerParameters.cs (6)
185
path =
Path
.GetFullPath(path);
229
if ((path[parentLength] !=
Path
.DirectorySeparatorChar) && (path[parentLength] !=
Path
.AltDirectorySeparatorChar))
246
this.netFxRuntimeRoot = XomlCompilerHelper.TrimDirectorySeparatorChar(
Path
.GetDirectoryName(runtimePath));
293
string dir = XomlCompilerHelper.TrimDirectorySeparatorChar(
Path
.GetDirectoryName(
Path
.GetFullPath(path)));
AuthoringOM\Design\DesignerHelpers.cs (5)
1465
relativePath = relativePath.Replace(
Path
.AltDirectorySeparatorChar,
Path
.DirectorySeparatorChar);
1466
if (!relativePath.Contains(
Path
.DirectorySeparatorChar.ToString()))
1467
relativePath = "." +
Path
.DirectorySeparatorChar + relativePath;
1474
if (path.Contains(
Path
.DirectorySeparatorChar.ToString()) && directory.Length > 0)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (5)
437
if (path.IndexOfAny(
Path
.GetInvalidPathChars()) >= 0 ||
438
!
Path
.IsPathRooted(path) ||
439
!
Path
.HasExtension(path))
446
string fileName =
Path
.GetFileNameWithoutExtension(path);
447
string extension =
Path
.GetExtension(path);
AuthoringOM\Design\Themes.cs (16)
184
this.name =
Path
.GetFileNameWithoutExtension(this.filePath);
313
path =
Path
.Combine(path, "Windows Workflow Foundation" +
Path
.DirectorySeparatorChar + "Themes");
314
path +=
Path
.DirectorySeparatorChar;
328
string tempThemePath =
Path
.Combine(path, DR.GetString(DR.MyFavoriteTheme) + ".wtm");
331
tempThemePath =
Path
.Combine(path, DR.GetString(DR.MyFavoriteTheme) + i.ToString(CultureInfo.InvariantCulture) + ".wtm");
356
string extension =
Path
.GetExtension(themePath);
507
string directory =
Path
.GetDirectoryName(themeFilePath);
649
directory =
Path
.GetDirectoryName(this.filePath) +
Path
.DirectorySeparatorChar;
1074
if (value != null && value.Length > 0 && value.Contains(
Path
.DirectorySeparatorChar.ToString()) &&
Path
.IsPathRooted(value))
1502
if (!String.IsNullOrEmpty(value) && value.Contains(
Path
.DirectorySeparatorChar.ToString()) &&
Path
.IsPathRooted(value))
2553
if (!String.IsNullOrEmpty(value) && value.Contains(
Path
.DirectorySeparatorChar.ToString()) &&
Path
.IsPathRooted(value))
AuthoringOM\Design\WorkflowPrinting.cs (1)
250
headerFooter = headerFooter.Replace("{FileName}",
Path
.GetFileName(headerFooterPrintData.FileName));
AuthoringOM\Design\XomlDesignerLoader.cs (3)
507
layoutFileName =
Path
.Combine(
Path
.GetDirectoryName(layoutFileName),
Path
.GetFileNameWithoutExtension(layoutFileName));
Shared\CompModHelpers.cs (3)
90
int length =
Path
.GetInvalidPathChars().GetLength(0) + 5;
92
Path
.GetInvalidPathChars().CopyTo(invalidChars, 0);
579
path =
Path
.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
System.WorkflowServices (3)
System\ServiceModel\Activation\WorkflowServiceBuildProvider.cs (1)
28
dependencies.Add(
Path
.ChangeExtension(base.VirtualPath, ruleFileExtension));
System\ServiceModel\Activation\WorkflowServiceHostFactory.cs (2)
61
string xomlVirtualPath =
Path
.Combine(AspNetEnvironment.Current.CurrentVirtualPath, constructorString);
66
string ruleFilePath =
Path
.ChangeExtension(xomlVirtualPath, WorkflowServiceBuildProvider.ruleFileExtension);
System.Xml (8)
System\Xml\Serialization\CodeGenerator.cs (1)
1758
tempFilesLocation =
Path
.GetTempPath();
System\Xml\Serialization\Compiler.cs (1)
134
baseDir =
Path
.GetTempPath();
System\Xml\Serialization\Configuration\XmlSerializerSection.cs (3)
84
if (!
Path
.IsPathRooted(tempDirectory))
90
if (firstChar ==
Path
.DirectorySeparatorChar || firstChar ==
Path
.AltDirectorySeparatorChar)
System\Xml\XmlResolver.cs (1)
53
uri = new Uri(
Path
.GetFullPath( relativeUri ) );
System\Xml\XmlSecureResolver.cs (1)
56
string uncDir = System.IO.
Path
.GetDirectoryName(uri.LocalPath);
System\Xml\Xslt\XslCompiledTransform.cs (1)
233
scriptAssemblyPath =
Path
.GetFullPath(scriptAssemblyPath);
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
334
return System.IO.
Path
.GetFileName(sb.ToString().ToLower(CultureInfo.InvariantCulture));
WindowsBase (9)
Base\System\IO\Packaging\PackUriHelper.cs (7)
457
string file =
Path
.GetFileName(partName);
465
partName =
Path
.Combine(partName, _relationshipPartSegmentName); // Adding the "_rels" segment
466
partName =
Path
.Combine(partName, file); // Adding the last segment back
515
string partNameWithoutExtension =
Path
.GetFileNameWithoutExtension(path);
527
path =
Path
.Combine(path, partNameWithoutExtension); // Adding the last segment without ".rels" extension
1119
_partUriExtension =
Path
.GetExtension(_partUriString);
1242
Debug.Assert(String.CompareOrdinal((
Path
.GetExtension(segments[segments.Length - 1])), _relationshipPartUpperCaseExtension) == 0);
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
433
String zlibDllPath =
Path
.Combine(fxDir, ZLibNativeDllName);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
356
fileName =
Path
.GetRandomFileName();
WsatConfig (1)
Configuration\RemoteHelper.cs (1)
169
path =
Path
.Combine(path, "WsatConfig.exe");
WsatUI (4)
Configuration\ETWWsatTraceSession.cs (3)
168
logFileName =
Path
.Combine(logFileNameInRegistry, DefaultLogFileName);
173
logFileName =
Path
.Combine(Environment.SystemDirectory, DafaultLogDirectory);
175
logFileName =
Path
.Combine(logFileName, DefaultLogFileName);
Configuration\RemoteHelper.cs (1)
169
path =
Path
.Combine(path, "WsatConfig.exe");
XamlBuildTask (18)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (3)
114
string randomName =
Path
.GetRandomFileName();
115
randomName =
Path
.ChangeExtension(randomName, "");
116
string filename =
Path
.ChangeExtension(randomName, ".tmp_proj");
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (2)
305
string fullPath =
Path
.GetFullPath(reference.ItemSpec);
326
string fullPath =
Path
.GetFullPath(reference.ItemSpec);
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (8)
392
codeFileName =
Path
.Combine(this.OutputPath, codeFileName);
420
string codeFileName =
Path
.ChangeExtension(outputFileName, GetGeneratedSourceExtension(codeDomProvider));
421
string markupFileName =
Path
.ChangeExtension(outputFileName, GeneratedSourceExtension + XamlBuildTaskServices.XamlExtension);
422
classData.EmbeddedResourceFileName =
Path
.GetFileName(markupFileName);
584
string originalMarkupItemName =
Path
.GetFileNameWithoutExtension(markupItem);
592
markupItemName = markupItemName +
Path
.GetExtension(markupItem);
598
return
Path
.Combine(this.OutputPath, markupItemName);
714
string desiredSourceFilePath =
Path
.ChangeExtension(markupItemPath, "xaml." + codeDomProvider.FileExtension);
Microsoft\Build\Tasks\Xaml\ResolveAssemblyHelper.cs (1)
66
if (string.Equals(targetName,
Path
.GetFileNameWithoutExtension(reference), StringComparison.OrdinalIgnoreCase))
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (4)
292
string fullPath =
Path
.GetFullPath(reference);
666
if (
Path
.IsPathRooted(assemblyFile))
675
assembly = Assembly.LoadFrom(
Path
.Combine(currentProjectDirectory, assemblyFile));
776
string asmName =
Path
.GetFileName(item.ItemSpec);