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