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