An extension for VS Code that provides intellisense for MSBuild project files, including auto-complete for <PackageReference>
elements.
The language service used by this extension can be found here: tintoy/msbuild-project-tools-server
PackageReference
and DotNetCliToolReference
.
Include
and Version
attributes of these items (invoke the NuGet: toggle pre-release
command to include / exclude pre-release packages / package versions).PropertyGroup
, ItemGroup
, Target
).Condition
attributes.XML
to MSBuild
.$()
property, @()
item, and %()
item metadata expressions.MSBuild
(not XML
).Tasks
to the msbuildProjectTools.language.completionsFromProject
setting.MSBuild
(not XML
).By default, the language service is automatically available for files with the following extensions:
*.*proj
.targets
.props
.tasks
If you want to use it with additional file types:
Ctrl-Shift-P
(or Cmd-Shift-P
on Mac) and choosing "Change Language Mode".MSBuild
.You can install this extension from the VS marketplace, Open VSX or simply download the VSIX package for the latest release and install it by choosing "Install from VSIX" from the menu on the top right of the extensions panel.
See BUILDING.md.
See architectural overview for details (this is a work-in-progress; if you have questions, feel free to create an issue).
PropertyGroup
/ ItemGroup
declarations (i.e. those appearing inside a Target
element); these are only evaluated when the project is built and so very little information about them is available to us when statically evaluating the project (see tintoy/msbuild-project-tools-server#5 for details).If you have questions, feedback, feature requests, or would like to report a bug, please feel free to reach out by creating an issue. When reporting a bug, please try to include as much information as possible about what you were doing at the time, what you expected to happen, and what actually happened.
If you're interested in collaborating that'd be great, too :-)