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