0

We can create a custom analyzer using Roslyn in C#, using which we can create a NuGet package and add it to our project. Now I have a problem that my project contains javascript files and I want to analyze those too. Hence I need Roslyn equivalent for javascript using which we can create a NuGet package and add it to our project. Any idea how i can achieve this? I am using Visual Studio 2017.

Liam
  • 27,717
  • 28
  • 128
  • 190
  • This also looks useful [Packing static content in Nuget for PackageReferece projects](https://stackoverflow.com/questions/48751019/packing-static-content-in-nuget-for-packagereferece-projects) – Liam Apr 28 '20 at 07:28
  • Not true, the question is about JS analyzer, not packaging. – Senad Meškin Jan 07 '21 at 16:14

1 Answers1

2

The Roslyn compiler technology is only used on the C# and Visual Basic compilers, and I wouldn't recommend using NuGet for that, anyway.

You should be looking at ESLint (npm) or TSLint (npm) and use npm for packaging it.

Paulo Morgado
  • 14,111
  • 3
  • 31
  • 59
  • FYI, it i possible to put js libraries into Nuget (e.g. [jquery](https://www.nuget.org/packages/jQuery/3.5.0.1)) – Liam Apr 28 '20 at 07:21
  • 2
    This seems like a [very strange edit to make](https://stackoverflow.com/revisions/61466793/2). You shouldn't edit tags to fit your answer. The OP is not asking about npm – Liam Apr 28 '20 at 07:24