180 references to Create
aspire (4)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
538await using var fileStream = File.Create(archivePath);
Agents\AspireSkills\EmbeddedAspireSkillsBundleProvider.cs (1)
81await using (var fileStream = File.Create(archivePath))
Documentation\FileBackedDocumentContentCache.cs (1)
238await using (var stream = File.Create(tempPath))
src\Shared\Export\ExportArchive.cs (1)
56using var fileStream = File.Create(filePath);
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
342using var fileStream = File.Create(graphPath);
Aspire.Acquisition.Tests (3)
Scripts\Common\FakeArchiveHelper.cs (1)
194await using var fileStream = File.Create(archivePath);
Scripts\PRScriptInstallerModeTests.cs (2)
427await using var fs = File.Create(path); 955await using (var fs = File.Create(x64Archive))
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3314await using var archiveStream = File.Create(archivePath);
Aspire.Dashboard (1)
src\Shared\Export\ExportArchive.cs (1)
56using var fileStream = File.Create(filePath);
Aspire.Hosting (1)
Utils\FileSystemService.cs (1)
162File.Create(filePath).Dispose();
Aspire.Hosting.Blazor.Tests (1)
tests\Shared\TestFileSystemService.cs (1)
37File.Create(filePath).Dispose();
Aspire.Hosting.Browsers (1)
BrowserEndpointDiscovery.cs (1)
183using (var stream = File.Create(tempPath))
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
183using (var stream = File.Create(tempPath))
Aspire.Hosting.RemoteHost.Tests (1)
RestoreCommandTests.cs (1)
90using var fileStream = File.Create(packagePath);
Aspire.Hosting.Tests (1)
tests\Shared\TestFileSystemService.cs (1)
37File.Create(filePath).Dispose();
Aspire.TestTools (1)
GitHubCli.cs (1)
320using var outputStream = File.Create(outputPath);
dotnet (8)
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
111using (var stream = File.Create(propsFilePath))
Commands\Test\MTP\ArtifactPostProcessingManager.cs (1)
312using FileStream stream = File.Create(manifestPath);
Commands\Workload\Install\FileBasedInstaller.cs (2)
704using var _ = File.Create(path); 755using var _ = File.Create(path);
Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (1)
95File.Create(sentinelPath).Close();
Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
54File.Create(path).Close();
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
192using FileStream destinationStream = File.Create(nupkgPath);
SdkVulnerability\SdkReleaseMetadataCache.cs (1)
182File.Create(sentinelPath).Close();
dotnet-aot (4)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (1)
95File.Create(sentinelPath).Close();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
54File.Create(path).Close();
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
192using FileStream destinationStream = File.Create(nupkgPath);
src\sdk\src\Cli\dotnet\SdkVulnerability\SdkReleaseMetadataCache.cs (1)
182File.Create(sentinelPath).Close();
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
360using (FileStream fs = File.Create(codePath))
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
75using (FileStream fs = File.Create(codePath))
DotNetWatchTasks (1)
FileSetSerializer.cs (1)
73using var fileStream = File.Create(OutputPath);
GetDocument.Insider (2)
Commands\GetDocumentCommandWorker.cs (2)
323var stream = File.Create(_context.FileListPath); 398using var outStream = File.Create(filePath);
ilasm (1)
Program.cs (1)
257using var outputStream = File.Create(outputPath);
ILCompiler.Build.Tasks (2)
DumpNativeResources.cs (2)
49using (var bw = new BinaryWriter(File.Create(ResourceFile))) 56using (var bw = new BinaryWriter(File.Create(ResourceFile)))
ILCompiler.Compiler (1)
Compiler\MstatObjectDumper.cs (1)
207using (var fs = File.Create(_fileName))
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
101using (var depsFileStream = File.Create(Path.Combine(SharedFrameworkDirectory, $"{sharedFxName}.deps.json")))
Microsoft.AspNetCore.Components.Testing.Tasks (1)
GenerateE2EManifest.cs (1)
183using var fileStream = File.Create(ManifestPath);
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
34using var fileStream = File.Create(ManifestPath);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
325var destinationStream = File.Create(physicalFilePath);
Microsoft.Build (2)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
788using Stream stream = File.Create(cacheFile);
BackEnd\Shared\TargetResult.cs (1)
321using Stream stream = File.Create(cacheFile);
Microsoft.Build.Tasks.Core (2)
Touch.cs (1)
168File.Create,
XmlPoke.cs (1)
162using (Stream stream = File.Create(inputPath))
Microsoft.CodeAnalysis (3)
FileSystemExtensions.cs (3)
46using (var outputStream = FileUtilities.CreateFileStreamChecked(File.Create, outputPath, nameof(outputPath))) 47using (var pdbStream = (pdbPath == null ? null : FileUtilities.CreateFileStreamChecked(File.Create, pdbPath, nameof(pdbPath)))) 48using (var xmlDocStream = (xmlDocPath == null ? null : FileUtilities.CreateFileStreamChecked(File.Create, xmlDocPath, nameof(xmlDocPath))))
Microsoft.Deployment.DotNet.Releases (2)
Utils.cs (2)
59using Stream destination = File.Create(fileName); 67using FileStream stream = File.Create(fileName);
Microsoft.DotNet.ApiCompat.Task (1)
ValidateAssembliesTask.cs (1)
171File.Create(SemaphoreFile).Dispose();
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
194using (var outStream = File.Create(DestinationPath))
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateChangelogFile.cs (1)
40using GZipStream stream = new(File.Create(ChangelogOutputPath), CompressionLevel.Optimal);
src\CreateControlFile.cs (1)
45using Stream stream = File.Create(ControlFileOutputPath);
src\CreateMD5SumsFile.cs (1)
32using FileStream outputFile = File.Create(OutputFile);
src\GenerateMacOSDistributionFile.cs (1)
120using XmlWriter writer = XmlWriter.Create(File.Create(DestinationFile));
Microsoft.DotNet.Build.Tasks.Packaging (2)
GenerateNuSpec.cs (1)
125using (var file = File.Create(OutputFileName))
NuGetPack.cs (1)
316using (var fileStream = File.Create(nupkgPath))
Microsoft.DotNet.HotReload.Utils.Generator (4)
DeltaProject.cs (4)
49var metaStream = File.Create(dinfo.Dmeta); 50var ilStream = File.Create(dinfo.Dil); 51var pdbStream = File.Create(dinfo.Dpdb); 52var updateHandlerInfoStream = File.Create(dinfo.UpdateHandlerInfo);
Microsoft.DotNet.InternalAbstractions (1)
FileWrapper.cs (1)
36using (File.Create(path))
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
390using (var file = File.Create(dependencyGraphFilePath))
Microsoft.DotNet.SharedFramework.Sdk (2)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
390using (var file = File.Create(dependencyGraphFilePath))
src\GenerateSharedFrameworkDepsFile.cs (1)
118using var depsStream = File.Create(depsFilePath);
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Storage\DiskBasedResponseCache.CacheEntry.cs (2)
64using FileStream cacheEntryFile = File.Create(cacheEntryFilePath); 72using FileStream cacheEntryFile = File.Create(cacheEntryFilePath);
Microsoft.Extensions.DependencyModel (1)
FileWrapper.cs (1)
42File.Create(path).Dispose();
Microsoft.Maui (1)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
68 using (var fileStream = File.Create(filePath))
Microsoft.Maui.Resizetizer (4)
SkiaSharpAppIconTools.cs (1)
75 using var wrapper = File.Create(destination);
SkiaSharpTools.cs (1)
213 using var stream = File.Create(destination);
TizenSplashUpdater.cs (1)
108 using var stream = File.Create(destFilePath);
WindowsIconGenerator.cs (1)
50 using BinaryWriter writer = new BinaryWriter(File.Create(destination));
Microsoft.ML.AutoML (1)
Experiment\ModelContainer.cs (1)
27using (var fs = File.Create(fileInfo.FullName))
Microsoft.ML.AutoML.Samples (3)
AutoFit\BinaryClassificationExperiment.cs (1)
44using (FileStream fs = File.Create(ModelPath))
AutoFit\MulticlassClassificationExperiment.cs (1)
45using (FileStream fs = File.Create(ModelPath))
AutoFit\RegressionExperiment.cs (1)
45using (FileStream fs = File.Create(ModelPath))
Microsoft.ML.AutoML.Tests (2)
DatasetUtil.cs (1)
232File.Create(Path.Combine(destFolder, flag));
UserInputValidationTests.cs (1)
188File.Create(emptyFilePath).Dispose();
Microsoft.ML.Data (2)
Model\ModelOperationsCatalog.cs (2)
71using (var stream = File.Create(filePath)) 118using (var stream = File.Create(filePath))
Microsoft.ML.IntegrationTests (5)
DataIO.cs (2)
122using (var file = File.Create(filePath)) 131using (var file = File.Create(filePath))
ONNX.cs (3)
52using (var file = File.Create(modelPath)) 102using (var file = File.Create(modelPath)) 154using (var file = File.Create(modelPath))
Microsoft.ML.OnnxTransformer (1)
OnnxUtils.cs (1)
434using (var fileStream = File.Create(tempModelFile))
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
201File.Create(Path.Combine(destFolder, flag));
Microsoft.ML.Predictor.Tests (2)
TestIniModels.cs (2)
540using (Stream iniStream = File.Create(modelIniPath)) 582using (Stream iniStream = File.Create(modelIniPath))
Microsoft.ML.Samples (6)
Dynamic\ModelOperations\OnnxConversion.cs (2)
71using (var stream = File.Create("sample_onnx_conversion_1.onnx")) 79using (var stream = File.Create("sample_onnx_conversion_2.onnx"))
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
301File.Create(Path.Combine(destFolder, flag));
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
342File.Create(Path.Combine(destFolder, flag));
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
298File.Create(Path.Combine(destFolder, flag));
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
319File.Create(Path.Combine(destFolder, flag));
Microsoft.ML.Samples.GPU (4)
docs\e4e90a0f3c9b109a\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
342File.Create(Path.Combine(destFolder, flag));
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
301File.Create(Path.Combine(destFolder, flag));
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
298File.Create(Path.Combine(destFolder, flag));
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
319File.Create(Path.Combine(destFolder, flag));
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1987File.Create(Path.Combine(destFolder, flag));
Microsoft.ML.TestFramework (3)
DataPipe\TestDataPipeBase.cs (3)
395using (var stream = File.Create(pathData)) 541using (var stream = File.Create(pathData)) 592using (var stream = File.Create(pathData))
Microsoft.ML.Tests (42)
BinaryLoaderSaverTests.cs (1)
29using (var fs = File.Create(outputPath))
FeatureContributionTests.cs (1)
244using (var fs = File.Create(outputPath))
OnnxConversionTest.cs (1)
1729using (var stream = File.Create(onnxModelPath))
Scenarios\Api\TestApi.cs (1)
166using (var fs = File.Create(GetOutputPath(OutputRelativePath, "lambda-output.tsv")))
SvmLightTests.cs (4)
49using (var stream = File.Create(savingPath)) 174using (var stream = File.Create(outputPath)) 197using (var stream = File.Create(outputPath)) 220using (var stream = File.Create(outputPath))
TermEstimatorTests.cs (1)
86using (var fs = File.Create(outputPath))
TextLoaderTests.cs (1)
1306using (var fs = File.Create(savedPath))
Transformers\CategoricalHashTests.cs (2)
71using (var fs = File.Create(outputPath)) 104using (var fs = File.Create(outputPath))
Transformers\CategoricalTests.cs (2)
90using (var fs = File.Create(outputPath)) 176using (var fs = File.Create(outputPath))
Transformers\ConcatTests.cs (2)
90using (var fs = File.Create(outputPath)) 154using (var fs = File.Create(outputPath))
Transformers\FeatureSelectionTests.cs (4)
53using (var fs = File.Create(outputPath)) 88using (var fs = File.Create(outputPath)) 130using (var fs = File.Create(outputPath)) 190using (var fs = File.Create(outputPath))
Transformers\HashTests.cs (1)
344using (var fs = File.Create(outputPath))
Transformers\KeyToValueTests.cs (1)
56using (var fs = File.Create(outputPath))
Transformers\NAIndicatorTests.cs (1)
118using (var fs = File.Create(outputPath))
Transformers\NAReplaceTests.cs (1)
145using (var fs = File.Create(outputPath))
Transformers\NormalizerTests.cs (6)
88using (var fs = File.Create(outputPath)) 678using (var fs = File.Create(outputPath)) 712using (var fs = File.Create(outputPath)) 775using (var fs = File.Create(outputPath)) 835using (var fs = File.Create(outputPath)) 1012using (var fs = File.Create(outputPath))
Transformers\PcaTests.cs (1)
63using (var fs = File.Create(outputPath))
Transformers\RffTests.cs (1)
78using (var fs = File.Create(outputPath))
Transformers\TextFeaturizerTests.cs (7)
447using (var fs = File.Create(outputPath)) 478using (var fs = File.Create(outputPath)) 502using (var fs = File.Create(outputPath)) 546using (var fs = File.Create(outputPath)) 608using (var fs = File.Create(outputPath)) 643using (var fs = File.Create(outputPath)) 702using (var fs = File.Create(outputPath))
Transformers\TextNormalizer.cs (1)
64using (var fs = File.Create(outputPath))
Transformers\WordEmbeddingsTests.cs (2)
54using (var fs = File.Create(outputPath)) 97using (var fs = File.Create(outputPath))
Microsoft.ML.TimeSeries (1)
PredictionEngine.cs (1)
90using (var file = File.Create(modelPath))
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
58using Stream fileStream = File.Create(fileName);
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
58using Stream fileStream = File.Create(fileName);
Microsoft.NET.Build.Containers (3)
Layer.cs (1)
102using (FileStream fs = File.Create(tempTarballPath))
LocalDaemons\ArchiveFileRegistry.cs (1)
48await using var fileStream = File.Create(fullPath);
Registry\Registry.cs (1)
451using (FileStream fs = File.Create(tempTarballPath))
Microsoft.NET.Build.Tasks (2)
GenerateDepsFile.cs (1)
276using (var fileStream = File.Create(depsFilePath))
GenerateRuntimeConfigurationFiles.cs (1)
428using (FileStream stream = File.Create(fileName))
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (5)
BlazorWriteSatelliteAssemblyFile.cs (1)
21using var fileStream = File.Create(WriteFile.ItemSpec);
GenerateBlazorBootExtensionJson.cs (1)
18using var fileStream = File.Create(OutputPath);
GenerateBlazorWebAssemblyBootJson50.cs (1)
43using var fileStream = File.Create(OutputPath);
GenerateServiceWorkerAssetsManifest.cs (1)
28using var fileStream = File.Create(OutputPath);
GZipCompress.cs (1)
80using var fileStream = File.Create(outputFullPath);
Microsoft.NET.Sdk.Publish.Tasks (4)
Tasks\MsDeploy\CreateManifestFile.cs (1)
108File.Create(ManifestFile).Close();
Tasks\MsDeploy\CreateMSDeployScript.cs (2)
26File.Create(ScriptFullPath).Close(); 35File.Create(ReadMeFullPath).Close();
Tasks\MsDeploy\CreateParameterFile.cs (1)
286File.Create(DeclareSetParameterFile).Close();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Compression\GZipCompress.cs (1)
58using var fileStream = File.Create(outputRelativePath);
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\FileBasedInstallationRecordInstaller.cs (1)
54File.Create(path).Close();
Microsoft.NETCore.Platforms (1)
UpdateRuntimeIdentifierGraph.cs (1)
45using FileStream streamWriter = File.Create(OutputFile!);
Microsoft.TemplateEngine.Abstractions (1)
PhysicalFileSystem\IPhysicalFileSystem.cs (1)
24/// Same behavior as <see cref="File.Create(string)"/>.
Microsoft.TemplateEngine.Utils (1)
PhysicalFileSystem.cs (1)
26return File.Create(path);
Microsoft.Web.XmlTransform (1)
XmlFileInfoDocument.cs (1)
223using (Stream file = File.Create(filename))
NuGet.Commands (1)
CommandRunners\PackCommandRunner.cs (1)
135using (Stream stream = File.Create(outputPath))
NuGet.Configuration (1)
Utility\FileSystemUtility.cs (1)
34using (Stream outputStream = File.Create(fullPath))
NuGet.PackageManagement (1)
Utility\FileSystemUtility.cs (1)
149return File.Create(fullPath);
NuGet.Packaging (4)
NuGetExtractionFileIO.cs (3)
35return File.Create; 67using (File.Create(path)) 90var fileStream = File.Create(path);
PackagesConfigWriter.cs (1)
557using (var tempConfigStream = File.Create(configFileNewPath))
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (1)
111FileStream fileStream = File.Create(NormalizedPath);
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2725FileStream file = File.Create(path);