dotnet/ProjFileTools

Name: ProjFileTools

Owner: .NET Foundation

Description: Tools for enhanced editing of MSBuild proj files in Visual Studio 2017

Created: 2017-02-28 22:35:39.0

Updated: 2018-04-04 12:33:32.0

Pushed: 2018-03-31 13:41:17.0

Homepage: null

Size: 247

Language: C#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Project File Tools

Build status

Download this extension from the VS Gallery.


Provides Intellisense and other tooling for XML based project files such as .csproj and .vbproj files.

See the change log for changes and road map.

Features
Intellisense

Full Intellisense for NuGet package references is provided for both packages that are locally cached as well as packages defined in any feed - local and online.

Tooltip

Tooltip

Hover tooltips

Hovering over a package reference shows details about that package.

Tooltip

Go To Definition (F12) for MSBuild imports

Set the caret on any import statement and press F12, Visual Studio will automatically open the imported file.

It supports both the traditional Import Project construct

ort Project="foo.targets" />

as well as the new SDK attribute used by .Net Core projects:

ject Sdk="Microsoft.NET.Sdk">
..
oject>

It supports evaluation of MSBuild properties and globs.

When the import statement covers multiple files (which is typically the case with the SDK attribute or when using globs), it opens the a window that displays the set of files included. In that list you can:

Tooltip

Go To Definition (F12) for MSBuild properties

Pressing F12 when caret is on the usage of a MSBuild property will open the location where that property is defined. If multiple definitions are found, it opens a window that lists all the definitions and their evaluated values.

For example:

pertyGroup>
<Foo>abc</Foo>
<Foo>def</Foo>
<Bar>$(Foo)</Bar>
opertyGroup>

Pressing F12 on $(Foo) in this case will lists both places where Foo is defined, including the evaluated values that get set (abc, def).

Tooltip

Selecting an item from the list, will open the corresponding location in the editor.

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.