139 references to ChangeExtension
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
766var keyPath = Path.ChangeExtension(path, ".key");
Aspire.Hosting (3)
Dashboard\DashboardEventHandlers.cs (2)
124runtimeConfigPath = Path.ChangeExtension(assemblyPath, ".runtimeconfig.json"); 196originalRuntimeConfig = Path.ChangeExtension(dashboardPath, ".runtimeconfig.json");
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
100var runSettingsFilePath = Path.ChangeExtension(projectMetadata.ProjectPath, ".run.json");
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
100var runSettingsFilePath = Path.ChangeExtension(projectMetadata.ProjectPath, ".run.json");
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
2689var xmlPath = Path.ChangeExtension(location, ".xml");
aspire-managed (2)
NuGet\Commands\LayoutCommand.cs (2)
179var xmlSourcePath = Path.ChangeExtension(sourcePath, ".xml"); 182var xmlDestPath = Path.ChangeExtension(destPath, ".xml");
ConfigurationSchemaGenerator (1)
ConfigSchemaGenerator.cs (1)
47var docPath = Path.ChangeExtension(path, "xml");
crossgen2 (5)
Program.cs (2)
331".dll" => Path.ChangeExtension(inFilePath, 335".exe" => Path.ChangeExtension(inFilePath,
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
217zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 347string originalPdbPath = Path.ChangeExtension(originalPath, "pdb"); 351archive.CreateEntryFromFile(originalPdbPath, Path.ChangeExtension(reproPackagePath, "pdb"));
Crossgen2Tasks (11)
PrepareForReadyToRunCompilation.cs (11)
179outputPDBImage = Path.ChangeExtension(outputR2RImage, "ni.pdb"); 180outputPDBImageRelativePath = Path.ChangeExtension(outputR2RImageRelativePath, "ni.pdb"); 202outputPDBImage = Path.ChangeExtension(outputR2RImage, perfmapExtension); 203outputPDBImageRelativePath = Path.ChangeExtension(outputR2RImageRelativePath, perfmapExtension); 281compositeR2RImageRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, "r2r" + Path.GetExtension(compositeR2RImageRelativePath)); 291compositeR2RImageRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, ".o"); 292compositeR2RFinalImageRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, ".dylib"); 314compositePDBImage = Path.ChangeExtension(compositeR2RImage, ".ni.pdb"); 315compositePDBRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, ".ni.pdb"); 321compositePDBImage = Path.ChangeExtension(compositeR2RImage, perfmapExtension); 322compositePDBRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, perfmapExtension);
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
449commandLineArgs = RuntimeHostInfo.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);
dotnet (5)
CommandFactory\CommandResolution\PackagedCommandSpecFactoryWithCliRuntime.cs (1)
20var runtimeConfigFile = Path.ChangeExtension(commandPath, FileNameSuffixes.RuntimeConfigJson);
Commands\Project\Convert\ProjectConvertCommand.cs (1)
486string defaultValue = Path.ChangeExtension(file, null);
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
33string slnxFileFullPath = Path.ChangeExtension(slnFileFullPath, "slnx");
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26276.122\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
449commandLineArgs = RuntimeHostInfo.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);
ToolPackage\ToolPackageDownloaderBase.cs (1)
383var runtimeConfigFilePath = Path.ChangeExtension(toolPackageInstance.Command.Executable.Value, ".runtimeconfig.json");
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
769var keyPath = Path.ChangeExtension(path, ".key");
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
214? (formatOptions with { BinaryLogPath = Path.ChangeExtension(binaryLogPath, ".binlog") })
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
903targetLib = $"{Path.ChangeExtension(this.FileName, ".dll")}";
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
ilc (3)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
217zipFileName = Path.Combine(makeReproPath, Path.ChangeExtension(zipFileName, ".zip")); 347string originalPdbPath = Path.ChangeExtension(originalPath, "pdb"); 351archive.CreateEntryFromFile(originalPdbPath, Path.ChangeExtension(reproPackagePath, "pdb"));
ILCompiler.ReadyToRun (6)
CodeGen\ReadyToRunObjectWriter.cs (4)
214string mapFileName = Path.ChangeExtension(_objectFilePath, ".map"); 220string nodeStatsCsvFileName = Path.ChangeExtension(_objectFilePath, ".nodestats.csv"); 221string mapCsvFileName = Path.ChangeExtension(_objectFilePath, ".map.csv"); 247string path = Path.ChangeExtension(_objectFilePath, ".profile");
Compiler\CallChainProfile.cs (1)
150string moduleSimpleName = Path.ChangeExtension(splitMethodName[0], null);
Compiler\ReadyToRunCodegenCompilation.cs (1)
444ownerExecutableName = Path.ChangeExtension(ownerExecutableName, ".dylib");
illink (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
769var keyPath = Path.ChangeExtension(path, ".key");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
769var keyPath = Path.ChangeExtension(path, ".key");
Microsoft.Build (1)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
52=> Path.ChangeExtension(logFilePath, sourcesArchiveExtension);
Microsoft.Build.Framework (2)
BuildEnvironmentHelper.cs (1)
573CurrentMSBuildConfigurationFile = Path.ChangeExtension(currentMSBuildExePath, configFileExtension);
Loader\MSBuildLoadContext.cs (1)
45_resolver = FileSystems.Default.FileExists(assemblyPath) && FileSystems.Default.FileExists(Path.ChangeExtension(assemblyPath, ".deps.json"))
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
304string actualPdb = Path.ChangeExtension(outputAssembly, ".pdb"); // This is the pdb that the compiler generated
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
449commandLineArgs = RuntimeHostInfo.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);
Microsoft.Build.Tasks.Core (5)
CreateManifestResourceName.cs (1)
181string conventionDependentUpon = Path.ChangeExtension(Path.GetFileName(fileName), SourceFileExtension);
GenerateResource.cs (2)
2063OutputResources[i] = new TaskItem(Path.ChangeExtension(Sources[i].ItemSpec, ".resources")); 3499return Path.ChangeExtension(outputResourcesFile, provider.FileExtension);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (2)
41() => Path.Combine(pathToBuildTools, "Roslyn", "bincore", Path.ChangeExtension(ToolName, ".dll")), 43() => Path.Combine(pathToBuildTools, "Roslyn", Path.ChangeExtension(ToolName, ".dll")),
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
365return PdbPath ?? Path.Combine(OutputDirectory, Path.ChangeExtension(outputFileName, ".pdb"));
CommandLine\CommandLineParser.cs (1)
469pdbPath = Path.ChangeExtension(Path.Combine(outputDirectory, outputFileName), ".pdb");
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
134var analyzerFileName = Path.ChangeExtension(simpleName, ".dll");
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
308var satelliteAssemblyName = Path.ChangeExtension(assemblyFileName, ".resources.dll");
InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
263return Path.ChangeExtension(entryPointFileName, ".exe");
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
588docFileName = Path.ChangeExtension(assemblyFileName, ".xml");
Microsoft.CodeAnalysis.Workspaces (6)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
96var newName = Path.ChangeExtension(ReplacementText, extension); 120newName = Path.ChangeExtension(nameWithoutExtension, extension);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
134var analyzerFileName = Path.ChangeExtension(simpleName, ".dll");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
308var satelliteAssemblyName = Path.ChangeExtension(assemblyFileName, ".resources.dll");
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Workspace\Host\Documentation\DocumentationProviderServiceFactory.cs (1)
36assemblyPath = Path.ChangeExtension(assemblyPath, "xml");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
Microsoft.DotNet.Build.Tasks.Packaging (5)
GetApplicableAssetsFromPackages.cs (3)
207string pdbPath = Path.ChangeExtension(packageItem.SourcePath, ".pdb"); 210var pdbItem = new TaskItem(Path.ChangeExtension(packageItem.OriginalItem.ItemSpec, ".pdb")); 216pdbItem.SetMetadata("TargetPath", Path.ChangeExtension(packageItem.TargetPath, ".pdb"));
GetLayoutFiles.cs (1)
137var symbolSource = Path.ChangeExtension(source, symbolExtension);
HarvestPackage.cs (1)
406if (livePackageFiles.TryGetValue(Path.ChangeExtension(livePackagePath, ".pdb"), out livePdbFile))
Microsoft.DotNet.XliffTasks (1)
Tasks\GatherTranslatedSource.cs (1)
101logicalName = Path.ChangeExtension(logicalName, $".{language}{logicalExtension}");
Microsoft.Extensions.DependencyModel (2)
DependencyContextLoader.cs (2)
136string depsJsonFile = Path.ChangeExtension(assemblyLocation, DepsJsonExtension); 147depsJsonFile = Path.ChangeExtension(assemblyCodeBase, DepsJsonExtension);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
80var goldenFileName = Path.ChangeExtension(stem, ".json");
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
45var goldenFileName = Path.ChangeExtension(stem, ".json");
Microsoft.Maui.Resizetizer (2)
Resizer.cs (2)
41 destination = Path.ChangeExtension(destination, RasterFileExtension); 100 destination = Path.ChangeExtension(destination, RasterFileExtension);
Microsoft.ML.CodeAnalyzer.Tests (1)
Helpers\AdditionalMetadataReferences.cs (1)
32var documentationProvider = XmlDocumentationProvider.CreateFromFile(Path.ChangeExtension(location, ".pdb"));
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1185var mlModelLocation = DeleteOutputPath(Path.ChangeExtension(modelLocation, ".zip"));
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.NET.Build.Tasks (12)
PrepareForReadyToRunCompilation.cs (11)
182outputPDBImage = Path.ChangeExtension(outputR2RImage, "ni.pdb"); 183outputPDBImageRelativePath = Path.ChangeExtension(outputR2RImageRelativePath, "ni.pdb"); 205outputPDBImage = Path.ChangeExtension(outputR2RImage, perfmapExtension); 206outputPDBImageRelativePath = Path.ChangeExtension(outputR2RImageRelativePath, perfmapExtension); 296compositeR2RImageRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, "r2r" + Path.GetExtension(compositeR2RImageRelativePath)); 313compositePDBImage = Path.ChangeExtension(compositeR2RImageOutputPath, ".ni.pdb"); 314compositePDBRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, ".ni.pdb"); 320compositePDBImage = Path.ChangeExtension(compositeR2RImageOutputPath, perfmapExtension); 321compositePDBRelativePath = Path.ChangeExtension(compositeR2RImageRelativePath, perfmapExtension); 361r2rImageRelativePath = Path.ChangeExtension(r2rImageRelativePath, ".o"); 362r2rFinalImageRelativePath = Path.ChangeExtension(r2rImageRelativePath, ".dylib");
ResolvePackageAssets.cs (1)
1207string xmlFilePath = Path.ChangeExtension(itemSpec, fileExtension);
Microsoft.NET.Sdk.Publish.Tasks (4)
WebConfigTransform.cs (2)
98appPath = Path.ChangeExtension(appPath, !string.IsNullOrWhiteSpace(extension) ? extension : null); 104appPath = Path.ChangeExtension(appPath, ".exe");
WebJobsCommandGenerator.cs (2)
15command = Path.ChangeExtension(appName, !string.IsNullOrWhiteSpace(executableExtension) ? executableExtension : null); 27command = Path.ChangeExtension(appName, ".exe");
Microsoft.TestPlatform.CrossPlatEngine (2)
Client\ProxyOperationManager.cs (1)
467: Path.ChangeExtension(
DataCollection\ProxyDataCollectionManager.cs (1)
329return Path.ChangeExtension(
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Hosting\DotnetTestHostManager.cs (1)
569var testhostDllPath = Path.ChangeExtension(startInfo.FileName, ".dll");
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\TrxFileHelper.cs (1)
397return !_checkMatchingDirectory || !Path.HasExtension(path) || !Directory.Exists(Path.ChangeExtension(path, string.Empty));
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Navigation\DiaSession.cs (1)
114var pdbFilePath = Path.ChangeExtension(binaryPath, ".pdb");
Navigation\PortableSymbolReader.cs (1)
87var pdbFilePath = Path.ChangeExtension(binaryPath, ".pdb");
Mono.Cecil (1)
Mono.Cecil.Cil\Symbols.cs (1)
1202 return Path.ChangeExtension (assemblyFileName, ".pdb");
NuGet.Build.Tasks (1)
StaticGraphRestoreTaskBase.cs (1)
247yield return Path.Combine(ThisAssemblyLazy.Value.DirectoryName, Path.ChangeExtension(ThisAssemblyLazy.Value.Name, ".Console.dll"));
NuGet.Packaging (5)
PackageExtraction\PackagePathHelper.cs (1)
130var manifestFileName = Path.ChangeExtension(packageFileName, PackagingCoreConstants.NuspecExtension);
PackageFileExtractor.cs (4)
46var dllFile = Path.ChangeExtension(file, ".dll"); 54var resourceDll = Path.ChangeExtension(file, ".resources.dll"); 87return Path.ChangeExtension(fileAtParentDirectory, ".dll"); 108var targetZip = Path.ChangeExtension(target, ".xml.zip");
PresentationBuildTasks (8)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (4)
712string buildCodeFile = OutputPath + Path.ChangeExtension(relativeFilePath, buildExtension); 713string intelCodeFile = OutputPath + Path.ChangeExtension(relativeFilePath, intellisenseExtension); 721bamlFile = OutputPath + Path.ChangeExtension(relativeFilePath, SharedStrings.BamlExtension); 1672locFile = Path.ChangeExtension(xamlRelativeFilePath, SharedStrings.LocExtension);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
774string bamlFileName = Path.ChangeExtension(resolvedXamlfile, SharedStrings.BamlExtension);
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
394path = Path.ChangeExtension(path, SharedStrings.BamlExtension);
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
358return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidtemp")); 363return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidbackup"));
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (1)
118path = Path.ChangeExtension(path, extension);
PresentationFramework (1)
MS\Internal\AppModel\ResourcePart.cs (1)
124string newName = Path.ChangeExtension(_name, ResourceContainer.BamlExt);
RepoTasks (2)
GenerateTestDevCert.cs (1)
46var devCertJsonFile = Path.ChangeExtension(CertificatePath, ".json");
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
769var keyPath = Path.ChangeExtension(path, ".key");
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
134/// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/>
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
116Path.ChangeExtension(ApplicationUri, ".dll") : ApplicationUri + ".dll";
System.Windows.Forms.Design (1)
System\Drawing\BitmapSelector.cs (1)
37=> string.IsNullOrEmpty(Suffix) ? filePath : Path.ChangeExtension(filePath, Suffix + Path.GetExtension(filePath));
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
449commandLineArgs = RuntimeHostInfo.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
449commandLineArgs = RuntimeHostInfo.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);