33 references to File
dotnet.Tests (8)
CommandTests\Run\RunFileTests.cs (6)
1952
new DirectoryInfo(testInstance.Path).
File
("msbuild.binlog").Should().Exist();
2078
packageDir.
File
("MyFileBasedTool.1.0.0.nupkg").Should().Exist();
2121
new DirectoryInfo(outputDir).
File
("MyFileBasedTool.1.0.0.nupkg").Should().Exist();
2148
var dllFile = artifactsDir.
File
("bin/debug/Program.dll");
2815
var nonGeneratedFile = codeFolder.
File
("CSharpCompilerCommand.cs");
2822
var codeFilePath = codeFolder.
File
("CSharpCompilerCommand.Generated.cs");
PackagedCommandTests.cs (2)
187
SetGeneratedPackageName(appWithDepOnToolDir.
File
("AppWithDepOnTool.csproj"),
190
SetGeneratedPackageName(toolWithRandPkgNameDir.
File
("ToolWithRandomPackageName.csproj"),
EndToEnd.Tests (1)
ProjectBuildTests.cs (1)
287
Assert.True(directoryInfo.
File
($"{expectedItemName}.{languageExtensionMap[language]}") != null);
Microsoft.NET.Build.Tests (14)
COMReferenceTests.cs (5)
59
var runCommand = new RunExeCommand(Log, outputDirectory.
File
("UseComReferences.exe").FullName);
120
Assert.True(outputDirectory.
File
($"Interop.{vslangProj70ComRef}").Exists);
121
Assert.True(outputDirectory.
File
($"Interop.{vslangProj80ComRef}").Exists);
129
Assert.True(outputDirectory.
File
($"Interop.{vslangProj70ComRef}").Exists);
130
Assert.True(outputDirectory.
File
($"Interop.{vslangProj80ComRef}").Exists);
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (1)
36
var runtimeConfigFile = outputDirectory.
File
("HelloWorld.runtimeconfig.json");
GivenThatWeWantToUseVB.cs (1)
90
File.Delete(outputDirectory.
File
("VBRuntimeValues.txt").FullName);
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (1)
210
var referencedDll = buildCommand.GetOutputDirectory().
File
("net462_net472_pkg.dll").FullName;
GivenWeWantToRequireWindowsForDesktopApps.cs (3)
245
outputDir.
File
("Microsoft.Windows.SDK.NET.dll").Exists.Should().BeTrue("The output has cswinrt dll");
246
outputDir.
File
("WinRT.Runtime.dll").Exists.Should().BeTrue("The output has cswinrt dll");
247
var runtimeconfigjson = File.ReadAllText(outputDir.
File
(ProjectName + ".runtimeconfig.json").FullName);
NonCopyLocalProjectReferenceTests.cs (1)
51
using var stream = File.OpenRead(outputDirectory.
File
("MainProject.deps.json").FullName);
RoslynBuildTaskTests.cs (2)
139
Run(buildCommand.GetOutputDirectory().
File
(testAsset.TestProject!.GetOutputFileName()));
149
Run(buildCommand.GetOutputDirectory().
File
(testAsset.TestProject!.GetOutputFileName()));
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (1)
WasmAoTPublishIntegrationTest.cs (1)
80
var webConfig = new BuildCommand(testInstance, "blazorwasm").GetOutputDirectory(configuration: "Release").
File
("web.config");
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (9)
BlazorMultitargetIntegrationTest.cs (8)
25
serverDependencies.
File
("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.WebAssembly.dll");
26
serverDependencies.
File
("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.Server.dll");
28
browserDependencies.
File
("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.WebAssembly.dll");
29
browserDependencies.
File
("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.Server.dll");
45
serverDependencies.
File
("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.WebAssembly.dll");
46
serverDependencies.
File
("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.Server.dll");
48
browserDependencies.
File
("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.WebAssembly.dll");
49
browserDependencies.
File
("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.Server.dll");
WasmPublishIntegrationTest.cs (1)
269
var webConfig = outputDirectory.
File
("web.config");