2 instantiations of EnvironmentOptions
dotnet-watch (1)
CommandLine\EnvironmentOptions.cs (1)
44
public static EnvironmentOptions FromEnvironment() =>
new
dotnet-watch.Tests (1)
TestUtilities\TestOptions.cs (1)
18
=>
new
(workingDirectory, muxerPath, TimeSpan.Zero, IsPollingEnabled: true, TestFlags: TestFlags.RunningAsTest, TestOutput: asset != null ? GetWatchTestOutputPath(asset) : "");
25 references to EnvironmentOptions
dotnet-watch (16)
Browser\BrowserLauncher.cs (1)
13
internal sealed class BrowserLauncher(ILogger logger,
EnvironmentOptions
environmentOptions)
Build\BuildReporter.cs (2)
14
internal sealed class BuildReporter(ILogger logger, GlobalOptions options,
EnvironmentOptions
environmentOptions)
17
public
EnvironmentOptions
EnvironmentOptions => environmentOptions;
Build\EvaluationResult.cs (1)
43
EnvironmentOptions
environmentOptions,
CommandLine\DotNetWatchContext.cs (1)
15
public required
EnvironmentOptions
EnvironmentOptions { get; init; }
CommandLine\EnvironmentOptions.cs (1)
44
public static
EnvironmentOptions
FromEnvironment() => new
FileWatcher\FileWatcher.cs (2)
10
internal class FileWatcher(ILogger logger,
EnvironmentOptions
environmentOptions) : IDisposable
208
public static async ValueTask WaitForFileChangeAsync(string filePath, ILogger logger,
EnvironmentOptions
environmentOptions, Action? startedWatching, CancellationToken cancellationToken)
HotReload\ScopedCssFileHandler.cs (1)
10
internal sealed class ScopedCssFileHandler(ILogger logger, ILogger buildLogger, ProjectNodeMap projectMap, BrowserRefreshServerFactory browserConnector, GlobalOptions options,
EnvironmentOptions
environmentOptions)
Process\ProjectLauncher.cs (1)
26
public
EnvironmentOptions
EnvironmentOptions
Program.cs (5)
19
EnvironmentOptions
environmentOptions)
43
var
environmentOptions =
EnvironmentOptions
.FromEnvironment();
67
private static Program? TryCreate(IReadOnlyList<string> args, IConsole console,
EnvironmentOptions
environmentOptions, bool verbose, out int errorCode)
83
internal static Program? TryCreate(CommandLineOptions options, IConsole console,
EnvironmentOptions
environmentOptions, LoggerFactory loggerFactory, IProcessOutputReporter processOutputReporter, out int errorCode)
Watch\MsBuildFileSetFactory.cs (1)
30
private
EnvironmentOptions
EnvironmentOptions => buildReporter.EnvironmentOptions;
dotnet-watch.Tests (9)
Build\EvaluationTests.cs (3)
429
var
options = TestOptions.GetEnvironmentOptions(workingDirectory: testDirectory, muxerPath: MuxerPath);
489
var
options = TestOptions.GetEnvironmentOptions(workingDirectory: Path.GetDirectoryName(project1Path)!, muxerPath: MuxerPath);
527
var
options = TestOptions.GetEnvironmentOptions(workingDirectory: testDir, muxerPath: MuxerPath) with { TestOutput = testDir };
CommandLine\EnvironmentOptionsTests.cs (1)
14
var
envOptions = TestOptions.GetEnvironmentOptions(workingDirectory);
HotReload\CompilationHandlerTests.cs (1)
20
var
environmentOptions = TestOptions.GetEnvironmentOptions(Environment.CurrentDirectory, "dotnet");
HotReload\RuntimeProcessLauncherTests.cs (1)
99
var
environmentOptions = TestOptions.GetEnvironmentOptions(workingDirectory ?? testAsset.Path, TestContext.Current.ToolsetUnderTest.DotNetHostPath, testAsset);
TestUtilities\TestOptions.cs (1)
17
public static
EnvironmentOptions
GetEnvironmentOptions(string workingDirectory = "", string muxerPath = "", TestAsset? asset = null)
Watch\BuildEvaluatorTests.cs (1)
14
var
environmentOptions = TestOptions.GetEnvironmentOptions() with
Watch\NoRestoreTests.cs (1)
12
private static DotNetWatchContext CreateContext(string[] args = null,
EnvironmentOptions
environmentOptions = null)