63 references to Copy
Aspire.Hosting (1)
ApplicationModel\AspireStore.cs (1)
64File.Copy(tempFileName, finalFilePath, overwrite: true);
Aspire.Hosting.Azure (3)
AzureProvisioningResource.cs (1)
93File.Copy(moduleSourcePath, moduleDestinationPath, true);
AzurePublishingContext.cs (2)
149File.Copy(file.Path, modulePath, true); 310File.Copy(file.Path, modulePath, true);
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
66File.Copy(executableSource, executable, overwrite: true); 71File.Copy(configPath, executable + ".config", overwrite: true);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
111File.Copy(codePath, sourceFilePath, true);
dotnet-svcutil-lib (1)
Shared\Utilities\PathHelper.cs (1)
216File.Copy(filePath, dstFilePath, overwrite: true);
dotnet-svcutil-lib.Tests (4)
GlobalToolTests.cs (4)
99File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true); 100File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true); 127File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true); 128File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true);
HelixTestRunner (1)
TestRunner.cs (1)
295File.Copy("TestResults/TestResults.xml", "testResults.xml", overwrite: true);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
280File.Copy(
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
280File.Copy(
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
280File.Copy(
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
280File.Copy(
illink (5)
Microsoft.Arcade.Common (1)
FileSystem.cs (1)
42public virtual void CopyFile(string sourceFileName, string destFileName, bool overwrite = false) => File.Copy(sourceFileName, destFileName, overwrite);
Microsoft.AspNetCore.InternalTesting (1)
HelixHelper.cs (1)
22File.Copy(filePath, uploadPath, overwrite: true);
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
209File.Copy(newPath, newPath.Replace(sourcePath, targetPath), true);
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
2963File.Copy(file, destPath, true);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (1)
87File.Copy(SourcePath, DestinationPath, overwrite: true);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (1)
87File.Copy(SourcePath, DestinationPath, overwrite: true);
Microsoft.Build.Tasks.Core (5)
BootstrapperUtil\BootstrapperBuilder.cs (2)
372File.Copy(setupSourceFile, strOutputExe, true); 1478File.Copy(packageFileSource.Value, strDestinationFileName, true);
Copy.cs (1)
375File.Copy(sourceFileState.Name, destinationFileState.Name, true);
ManifestUtil\LauncherBuilder.cs (1)
92File.Copy(LauncherPath, strOutputExe, true);
ManifestUtil\ManifestWriter.cs (1)
133File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
616File.Copy(originalPath, shadowCopyPath, overwrite: true);
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1426File.Copy(assembly.Location, destFile, overwrite: true);
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
117File.Copy(filePath, DestinationPath, overwrite: true);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PushToBuildStorage.cs (2)
587File.Copy(sourceFileName, destFileName, overwrite); 592File.Copy(sourceFileName, destFileName, overwrite);
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateLightCommandPackageDrop.cs (1)
55File.Copy(WixProjectFile, destinationPath, true);
src\CreateWixCommandPackageDropBase.cs (3)
145File.Copy(wixSrcFile.ItemSpec, newWixSrcFilePath, true); 177File.Copy(locItem.ItemSpec, destinationPath, true); 331File.Copy(oldPath, Path.Combine(outputPath, newRelativePath), true);
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackageBase.cs (1)
239File.Copy(PackagePath, Path.Combine(DestinationDirectory, Path.GetFileName(PackagePath)), overwrite: true);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
374File.Copy(package.TempPathOpt, finalPath, overwrite: true);
src\ReplacePackageParts.cs (1)
240File.Copy(tempPackagePath, NewPackage, overwrite: true);
Microsoft.DotNet.SignTool (5)
src\BatchSignUtil.cs (1)
453File.Copy(src, dst, overwrite: true);
src\ZipData.cs (4)
266File.Copy(signedPart.Value.FileSignInfo.FullPath, file, true); 282File.Copy(outputFileName, FileSignInfo.FullPath, true); 366File.Copy(signedPart.Value.FileSignInfo.FullPath, path, overwrite: true); 447File.Copy(signedPart.Value.FileSignInfo.FullPath, path, overwrite: true);
Microsoft.DotNet.XliffTasks (4)
Tasks\TransformTemplates.cs (4)
74File.Copy(templatePath, cultureSpecificTemplateFile, overwrite: true); 80File.Copy(projectFileFullPath, Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value)), overwrite: true); 108File.Copy(Path.Combine(TranslatedOutputDirectory, localizedFileName), templateItemDestinationPath, overwrite: true); 113File.Copy(templateItemFullPath, templateItemDestinationPath, overwrite: true);
Microsoft.Maui.Resizetizer (1)
Resizer.cs (1)
73 File.Copy(Info.Filename, destination, true);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1136IO.File.Copy(sourceFileFullPath, destinationFileFullPath, overwrite)
Microsoft\VisualBasic\FileSystem.vb (1)
284File.Copy(Source, Destination, True)
PresentationBuildTasks (1)
MS\Internal\Tasks\TaskFileService.cs (1)
356File.Copy(buildFile, intelFile, /*overwrite*/ true);
PresentationUI (2)
MS\Internal\Documents\Application\DocumentStream.cs (2)
118File.Copy(sourcePath, copiesPath, true); 264File.Copy(sourcePath, tempPath, true);
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
303File.Copy(sourceFileNameFullPath, destinationFileNameFullPath, overwrite);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
44=> Copy(sourceFileName, destFileName, overwrite: false);
TestTasks (1)
InjectRequestHandler.cs (1)
61File.Copy(Path.Combine(outputFolder, bitnessString, aspnetcoreV2Name), Path.Combine(outputFolder, aspnetcoreV2Name), overwrite: true);