2 instantiations of EnvironmentOptions
dotnet-watch.Tests (1)
TestUtilities\TestOptions.cs (1)
18=> new(workingDirectory, muxerPath, TimeSpan.Zero, IsPollingEnabled: true, TestFlags: TestFlags.RunningAsTest, TestOutput: asset != null ? asset.GetWatchTestOutputPath() : "");
Microsoft.DotNet.HotReload.Watch (1)
Context\EnvironmentOptions.cs (1)
44public static EnvironmentOptions FromEnvironment(string muxerPath) => new
28 references to EnvironmentOptions
dotnet-watch (6)
Program.cs (5)
20EnvironmentOptions environmentOptions) 47var environmentOptions = EnvironmentOptions.FromEnvironment(processPath); 71private static Program? TryCreate(IReadOnlyList<string> args, IConsole console, EnvironmentOptions environmentOptions, bool verbose, out int errorCode) 87internal 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)
444var options = TestOptions.GetEnvironmentOptions(workingDirectory: testDirectory, muxerPath: MuxerPath); 509var options = TestOptions.GetEnvironmentOptions(workingDirectory: Path.GetDirectoryName(project1Path)!, muxerPath: MuxerPath); 547var 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)
100var 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)
Microsoft.DotNet.HotReload.Watch (11)
Browser\BrowserLauncher.cs (1)
14internal sealed class BrowserLauncher(ILogger logger, IProcessOutputReporter processOutputReporter, EnvironmentOptions environmentOptions)
Build\BuildReporter.cs (2)
14internal sealed class BuildReporter(ILogger logger, GlobalOptions options, EnvironmentOptions environmentOptions) 17public EnvironmentOptions EnvironmentOptions => environmentOptions;
Build\EvaluationResult.cs (2)
35public static ImmutableDictionary<string, string> GetGlobalBuildOptions(IEnumerable<string> buildArguments, EnvironmentOptions environmentOptions) 57EnvironmentOptions environmentOptions,
Context\DotNetWatchContext.cs (1)
15public required EnvironmentOptions EnvironmentOptions { get; init; }
Context\EnvironmentOptions.cs (1)
44public static EnvironmentOptions FromEnvironment(string muxerPath) => 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
Microsoft.DotNet.HotReload.Watch.Aspire (2)
DotNetWatchLauncher.cs (2)
46var environmentOptions = EnvironmentOptions.FromEnvironment(muxerPath);