internal static void Update(DotNetCoreDebuggerPath path) { if (path.FileName == FileName) { return; } Init(path); if (path.IsDefault()) { PropertyService.Set(DotNetCoreDebuggerRuntimeFileNameProperty, null); } else { PropertyService.Set(DotNetCoreDebuggerRuntimeFileNameProperty, path.FileName); } OnChanged(); }
static void Init(DotNetCoreDebuggerPath path) { IsInstalled = !path.IsMissing; FileName = path.FileName; }