diff --git a/src/Uno.UI.RemoteControl.VS/GlobalJsonObserver.cs b/src/Uno.UI.RemoteControl.VS/GlobalJsonObserver.cs index 1254ac2381b8..9dd275f0fab3 100644 --- a/src/Uno.UI.RemoteControl.VS/GlobalJsonObserver.cs +++ b/src/Uno.UI.RemoteControl.VS/GlobalJsonObserver.cs @@ -1,17 +1,12 @@ using System; using System.IO; using System.Text.Json; -using System.Linq; +using System.Threading.Tasks; using EnvDTE; +using Microsoft.VisualStudio.Imaging; using Microsoft.VisualStudio.Shell; -using EnvDTE80; using Microsoft.VisualStudio.Shell.Interop; -using Uno.UI.RemoteControl.VS.Helpers; -using Microsoft.VisualStudio.PlatformUI; using Uno.UI.RemoteControl.VS.Notifications; -using Microsoft.VisualStudio.Imaging; -using Microsoft.VisualStudio; -using System.Threading.Tasks; namespace Uno.UI.RemoteControl.VS; @@ -176,6 +171,11 @@ await _asyncPackage.GetServiceAsync(typeof(SVsShell)) is IVsShell shell { return unoSdkElement.ToString(); } + // Can't find Uno.Sdk, so fallback to look for Uno.Sdk.Private + if (msbuildSdksElement.TryGetProperty("Uno.Sdk.Private", out var unoSdkPrivateElement)) + { + return unoSdkPrivateElement.ToString(); + } } return null;