diff --git a/SmartCmdArgs/SmartCmdArgs.Shared/Services/VisualStudioHelperService.cs b/SmartCmdArgs/SmartCmdArgs.Shared/Services/VisualStudioHelperService.cs index 7a392769..b688cb59 100644 --- a/SmartCmdArgs/SmartCmdArgs.Shared/Services/VisualStudioHelperService.cs +++ b/SmartCmdArgs/SmartCmdArgs.Shared/Services/VisualStudioHelperService.cs @@ -325,7 +325,7 @@ public string GetMSBuildPropertyValue(IVsHierarchyWrapper hierarchy, string prop { ThreadHelper.ThrowIfNotOnUIThread(); - var propStorage = hierarchy as IVsBuildPropertyStorage; + var propStorage = hierarchy.Hierarchy as IVsBuildPropertyStorage; if (propStorage == null) return null;