Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.17k stars 128 forks source link

Visual Studio reports vulnerability in nuget reference #465

Closed hansmbakker closed 5 months ago

hansmbakker commented 7 months ago

Describe the bug Visual Studio reports vulnerability in nuget reference.

To Reproduce Steps to reproduce the behavior:

  1. Checkout the main branch
  2. Open XamlStyler.sln in Visual Studio 2022 17.9
  3. See image

Expected behavior No vulnerabilities reported

External Configuration If you are using an external configuration, please attach to help reproduce the issue.

Version Info (please complete the following information):

Additional context In general, there are multiple NuGet packages that have updates. The NewtonSoft.Json package in XamlStyler.csproj seems to be the oldest one.

grochocki commented 7 months ago

Unfortunately, there are gotchas with Newtonsoft.Json. Updating can lead to unexpected behavior on older versions of Visual Studio (https://github.com/Xavalon/XamlStyler/issues/377), so we are blocked for now, but going to leave this issue open to track. More information here: Using Newtonsoft.Json in a Visual Studio extension.

hansmbakker commented 7 months ago

Is it really needed to keep releasing new XamlStyler updates for old Visual Studio versions? (not sure how long they need to be supported?)

grochocki commented 5 months ago

After publishing final feature update supporting VS2017 (#480), we will be unblocked form updating Newtonsoft.Json to version 12.0.2 (#481). Using the two referenced issues to track these changes, so closing this.