tintoy / msbuild-project-tools-server

Language server for MSBuild intellisense (including PackageReference completion).
MIT License
59 stars 16 forks source link

[Feature] Add support for `nuspec` files #32

Open ChristopherHaws opened 1 year ago

ChristopherHaws commented 1 year ago

Hey! Awesome job on making a language server for msbuild! I have no clue why this isn't just part of .NET...

I was wondering if you would be interested in adding file support for raw nuspec files. Most of the functionality works just by including the schema (xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd") but there are some features that I would love:

tintoy commented 1 year ago

Hey, that’s a nice idea! I take it there isn’t currently a language service for any of the other NuGet file types? (just want to make sure I’m not stepping on anyone else’s toes!)

ChristopherHaws commented 1 year ago

I was not able to find anything. The tooling around nuspec files has always been pretty lack luster IMO. The only thing I could find was the xsd schema which I couldn't get working in VS Code. From what I can tell, the nuget team doesn't publish the schema file (if you actually go to http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd it returns not found).

Here is where they define the schema URI's and the actual xsd file.

tintoy commented 1 year ago

Thanks! I think it wouldn’t be too difficult to do; might be a week or 2 before I get a proper chance to look at it (work is a little full-on at the moment) but after that I’ll see what I can do! 🙂

ChristopherHaws commented 1 year ago

Awesome! I know nuspec isn't really msbuild but they are in the same family and I felt like most of the plumbing is probably already handled by the rest of your codebase. :)

tintoy commented 1 year ago

Hoping to start on this sometime today :)