12 references to VolumePathPlatform
Aspire.Dashboard (7)
Model\VolumePathLauncher.cs (7)
66internal static ProcessStartInfo? CreateStartInfo(string fullPath, bool isDirectory, VolumePathPlatform platform) 71case VolumePathPlatform.Windows: 82case VolumePathPlatform.MacOS: 100private static VolumePathPlatform GetCurrentPlatform() => 101OperatingSystem.IsWindows() ? VolumePathPlatform.Windows 102: OperatingSystem.IsMacOS() ? VolumePathPlatform.MacOS 103: VolumePathPlatform.Linux;
Aspire.Dashboard.Tests (5)
Model\VolumePathLauncherTests.cs (5)
18var startInfo = VolumePathLauncher.CreateStartInfo(path, isDirectory, VolumePathPlatform.Windows); 30Assert.Null(VolumePathLauncher.CreateStartInfo("C:\\src\\a\" b", isDirectory: false, VolumePathPlatform.Windows)); 38var startInfo = VolumePathLauncher.CreateStartInfo("/src/my \"scripts\"/init.command", isDirectory, VolumePathPlatform.MacOS); 52var startInfo = VolumePathLauncher.CreateStartInfo(path, isDirectory: false, VolumePathPlatform.Linux); 63var startInfo = VolumePathLauncher.CreateStartInfo("/src/data", isDirectory: true, VolumePathPlatform.Linux);