87 references to Copy
aspire (6)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
622File.Copy(sourceFile, targetFile, overwrite: true);
Agents\Playwright\PlaywrightCliInstaller.cs (1)
435File.Copy(sourceFile, targetFile, overwrite: true);
Commands\UpdateCommand.cs (1)
815File.Copy(newExePath, targetExePath, overwrite: true);
Packaging\NuGetConfigMerger.cs (1)
112File.Copy(tmpConfig.ConfigFile.FullName, targetPath, overwrite: true);
Projects\AppHostServerClosureSnapshots.cs (1)
438File.Copy(entry.SourcePath, destinationPath, overwrite: false);
src\Shared\UserSecrets\IsolatedUserSecretsHelper.cs (1)
43File.Copy(originalSecretsPath, isolatedSecretsPath, overwrite: true);
aspire-managed (1)
NuGet\Commands\LayoutCommand.cs (1)
150File.Copy(sourcePath, destPath, overwrite: true);
Aspire.Cli.EndToEnd.Tests (3)
Helpers\CliE2ETestHelpers.cs (2)
1169File.Copy(sourcePath, destFile, overwrite: true); 1195File.Copy(file, destFile, overwrite: true);
Helpers\TerminalRun.cs (1)
129File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true);
Aspire.Hosting (2)
ApplicationModel\AspireStore.cs (1)
70File.Copy(tempFileName, finalFilePath, overwrite: true);
ApplicationModel\DockerfileBuildAnnotation.cs (1)
157File.Copy(DockerfilePath, dockerfilePath, overwrite: true);
Aspire.Hosting.Azure (3)
AzureProvisioningResource.cs (1)
97File.Copy(moduleSourcePath, moduleDestinationPath, true);
AzurePublishingContext.cs (2)
160File.Copy(file.Path, modulePath, true); 406File.Copy(file.Path, modulePath, true);
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
545File.Copy(scriptSource, scriptDest, overwrite: true);
Aspire.Hosting.Sdk.Tests (2)
AppHostSdkTargetsTests.cs (2)
1396File.Copy(fakeDotNetPath, aspirePath, overwrite: true); 1406File.Copy(sourcePath, Path.Combine(destinationDirectory, Path.GetFileName(sourcePath)), overwrite: true);
Aspire.TestTools (1)
GitHubCli.cs (1)
66File.Copy(fixturePath, outputPath, overwrite: true);
dotnet (3)
Commands\Run\CSharpCompilerCommand.cs (1)
134File.Copy(objFile.FullName, binFile.FullName, overwrite: true);
Commands\Workload\Install\FileBasedInstaller.cs (1)
204File.Copy(packagePath, packInfo.Path, overwrite: overwriteExistingPacks);
SudoEnvironmentDirectoryOverride.cs (1)
88() => File.Copy(userNuGetConfig, overriddenNugetConfig, overwrite: true));
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
66File.Copy(executableSource, executable, overwrite: true); 71File.Copy(configPath, executable + ".config", overwrite: true);
dotnet-svcutil-lib (1)
Shared\Utilities\PathHelper.cs (1)
216File.Copy(filePath, dstFilePath, overwrite: true);
dotnet-svcutil-lib.Tests (4)
GlobalToolTests.cs (4)
113File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.cs"), Path.Combine(this_TestCaseOutputDir, "FullFramework.cs"), true); 114File.Copy(Path.Combine(g_TestCasesDir, "FullFramework", "FullFramework.csproj"), Path.Combine(this_TestCaseOutputDir, "FullFramework.csproj"), true); 141File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, "Program.cs"), Path.Combine(this_TestCaseOutputDir, "Program.cs"), true); 142File.Copy(Path.Combine(g_TestCasesDir, this_TestCaseName, testCaseName, $"{testCaseName}.csproj"), Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), true);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
111File.Copy(codePath, sourceFilePath, true);
ILCompiler.Diagnostics (1)
PdbWriter.cs (1)
188File.Copy(dllPath, _tempSourceDllName, overwrite: true);
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 (1)
Logging\BinaryLogger\BinaryLogger.cs (1)
569File.Copy(FilePath, additionalPath, overwrite: true);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (1)
87File.Copy(SourcePath, DestinationPath, overwrite: true);
Microsoft.Build.Tasks.Core (5)
BootstrapperUtil\BootstrapperBuilder.cs (2)
374File.Copy(setupSourceFile, strOutputExe, true); 1480File.Copy(packageFileSource.Value, strDestinationFileName, true);
Copy.cs (1)
380File.Copy(sourceFileState.Path, destinationFileState.Path, true);
ManifestUtil\LauncherBuilder.cs (1)
109File.Copy(launcher.Value, outputExe.Value, true);
ManifestUtil\ManifestWriter.cs (1)
146File.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.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 (9)
src\CreateLightCommandPackageDrop.cs (1)
56File.Copy(WixProjectFile, destinationPath, true);
src\CreateWixBuildWixpack.cs (5)
115File.Copy(projectPath, destPath, overwrite: true); 202File.Copy(includeFile, tempFilePath, overwrite: true); 519File.Copy(xmlPath, copiedXmlPath, overwrite: true); 1024File.Copy(source, destPath, overwrite: true); 1108File.Copy(file, Path.Combine(destDir, Path.GetFileName(file)), overwrite: 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)
246File.Copy(PackagePath, Path.Combine(DestinationDirectory, Path.GetFileName(PackagePath)), overwrite: true);
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
744File.Copy(sourcePath, targetPath, overwrite: false);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
374File.Copy(package.TempPathOpt, finalPath, overwrite: true);
src\ReplacePackageParts.cs (1)
227File.Copy(tempPackagePath, NewPackage, overwrite: true);
Microsoft.DotNet.XliffTasks (4)
Tasks\TransformTemplates.cs (4)
80File.Copy(templatePath, cultureSpecificTemplateFile, overwrite: true); 86File.Copy(projectFileFullPath, Path.Combine(localizedTemplateDirectory, Path.GetFileName(projectNode.Attribute("File").Value)), overwrite: true); 114File.Copy(Path.Combine(TranslatedOutputDirectory, localizedFileName), templateItemDestinationPath, overwrite: true); 119File.Copy(templateItemFullPath, templateItemDestinationPath, overwrite: true);
Microsoft.Maui.Resizetizer (1)
Resizer.cs (1)
73 File.Copy(Info.Filename, destination, true);
Microsoft.NET.HostModel (2)
AppHost\BinaryUtils.cs (1)
174File.Copy(sourcePath, destinationPath, overwrite: true);
ComHost\ComHost.cs (1)
37File.Copy(comHostSourceFilePath, comHostDestinationFilePath, overwrite: true);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
1258File.Copy(sourceFile, destPath, overwrite: true);
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\TransformWebConfig.cs (1)
99File.Copy(projectWebConfigPath, publishWebConfigPath, true);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Data\StaticWebAsset.cs (1)
1258File.Copy(sourceFile, destPath, overwrite: true);
Microsoft.TemplateEngine.Abstractions (1)
PhysicalFileSystem\IPhysicalFileSystem.cs (1)
44/// Same behavior as <see cref="File.Copy(string, string, bool)"/>.
Microsoft.TemplateEngine.Utils (1)
PhysicalFileSystem.cs (1)
46File.Copy(source, target, overwrite);
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)
NuGet.Packaging (1)
PackageFileExtractor.cs (1)
126File.Copy(source, target, overwrite: true);
NuGet.Protocol (1)
Resources\PackageUpdateResource.cs (1)
697File.Copy(pathToPackage, fullPath, overwrite: 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);
sdk-tasks (1)
Crossgen.cs (1)
59File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true);
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
303File.Copy(sourceFileNameFullPath, destinationFileNameFullPath, overwrite);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
43=> Copy(sourceFileName, destFileName, overwrite: false);
VBCSCompiler (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (3)
220File.Copy(sourcePath, targetPath, overwrite: true); 325File.Copy(outputFiles.AssemblyPath, Path.Combine(stagingDir, AssemblyFileName), overwrite: false); 371File.Copy(sourcePath, destPath, overwrite: false);