This project is read-only.


Duplicate warnings when using both VSIX and NUPKG


I installed the Visual Studio version to try it out, was very pleased and decided to get the MSBuild NuGet version and add it to the solution. Now when I run JSLint.NET manually from the context menu I get duplicate warnings. This is not a huge issue but a bit of a nuisance.

Is it possible to use both simultaneously without creating duplicate warnings?


Qube wrote May 7, 2014 at 11:03 PM

Copied from discussion by silence150:
Running both MSBuild and Visual Studio versions?

Qube wrote Jul 29, 2014 at 10:48 AM

Having trouble getting the VS package to detect MSBuild targets or visa versa. I'll keep researching though.

Qube wrote Aug 31, 2014 at 6:30 AM

OK, the solution seems to be to use Microsoft.Build.Evaluation.ProjectCollection.GlobalProjectCollection. It's really the only logical interop point between the in-memory VS package and MSBuild.

The simplest way forward will be to detect the JSLintNet.MSBuild import and, if it exists, delegate all linting operations to it. That is, the VS package will not do anything (other than adding ignore rules and settings) if the NuGet package is installed.

Qube wrote Sep 20, 2014 at 1:47 AM

Fixed in 736d8cd5c16b.