Var hr = solution.GetProjectOfUniqueName( project.UniqueName, out var hierarchy) Īnd, then, from that IVsHierarchy. If ( project = null) throw new ArgumentNullException(nameof( project))
Here's how to get an IVsHierarchy: public static IVsHierarchy GetHierarchy( this Project project) What could be the reason behind I typically just get an IVsHierarchy from it, then try to cast the result to IVsBuildPropertyStorage, and finally just parse the MSBuild directly, if requested. This extension works fine in the experimental instance, however while running the unit tests I am getting the below error, Could not load type '2' from assembly ', Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. NetworkChange.NetworkAvailabilit圜hanged += new NetworkAvailabilit圜hangedEventHandler(NetworkAvailabilit圜hanged)
ServiceProvider = ServiceProvider.GlobalProvider ĮrrorProvider = new ErrorListProvider(serviceProvider) serviceProvider = new ServiceProvider((IOleServiceProvider).GetGlobalService(typeof(IOleServiceProvider))) I have a visual studio package, in the package constructor I have the following public CustomPackage( )ĭebug.WriteLine( string.Format(CultureInfo.CurrentCulture, "Entering constructor for: ", this.ToString())) BindingExpression:Path=TextViewZoomScale DataItem= null target element is 'CrispImage' (Name= '') target property is 'ScaleFactor' (type 'Double') Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='.Implementation.LightBulb ', AncestorLevel=' 1 ''. BindingExpression:Path=ParentElement.IsKeyboardFocusWithin DataItem= null target element is 'Run' (HashCode= 44245575) target property is 'NoTarget' (type 'Object')
Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='.PreviewPane.PreviewPane ', AncestorLevel=' 1 ''. BindingExpression:Path=ParentElement.IsKeyboardFocusWithin DataItem= null target element is 'Hyperlink' (HashCode= 63212781) target property is 'NoTarget' (type 'Object')
Has anyone seen the following errors, when I upgrade to VS 2019 and run an existing Refactoring the preview Window is blank and on the development copy of VS in the Immediate windows I get the following Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='.PreviewPane.PreviewPane ', AncestorLevel=' 1 ''.