Water and update nuget reference versions error

Hi

While updating .net core nuget packages versions I got an error on applying the changes :

Object reference not set to an instance of an object.
at RemObjects.Elements.CommonProjectSystem.ElementsProjectFile.SetObjectAttribute(ElementsProjectObject item, String name, String newValue)
at RemObjects.Fire.ProjectSystem.PackageReference.updateName(String include)
at RemObjects.Fire.ProjectSystem.Project.addPackageReference____target(String name, Target target)
at RemObjects.Fire.ProjectSystem.Project.addPackageReferences____target(IEnumerable`1 names, Target target)
at RemObjects.Fire.App.AddReferenceWindowController.addReferences(Object sender)
at RemObjects.Fire.App.AddReferenceSheetView.addButton_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

in the latest Water.

Regards
Artur

Does this happen with every change for you, or only for a specific scenario?

Can’t say I can reproduce this on an arbitrary test-case.

Just when changing all (many) nugets to higher versions. Checked again and for 1 reference still get this error.



I think this selected nugget is more important because for others I don’t get any errors.

Ah, not only happens for Microsoft.NetCoreApp.Ref? That kind a makes sense, as that ones not represented sin the project, it’s implicit.

Obviously it would not NRE, and probably should not let you change that to start with; I’ll fix. But workaround until then is: just don’t do this :wink:

Update: fixed for 2817.

1 Like