Skip to content
Contains MSBuild targets and tools that are useful when developing Visual Studio extensions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Icon VisualStudio Targets

Build status Latest version License

Contains MSBuild targets that are useful when developing Visual Studio extensions.

  • Provides the following MSBuild properties for version-aware projects:

    • VisualStudioVersion: ensures it's always set (i.e. under dev15+, sets it to '15.0' on command line builds
    • MinimumVisualStudioVersion: equals VisualStudioVersion to allow opening on any version
    • DevEnvDir: if it's empty, for safe command-line building. Can be overriden.
    • PublicAssemblies: $(DevEnvDir)\PublicAssemblies\
    • PrivateAssemblies: $(DevEnvDir)\PrivateAssemblies\
    • VSSDK: the [VSSDK install directory]\VisualStudioIntegration\Common\Assemblies\ folder. Can be overriden.
    • VSSDK20: $(VSSDK)v2.0\
    • VSSDK40: $(VSSDK)v4.0\
    • VSToolsPath: path to the MSBuild targets for the VSSDK
    • Dev: simple version number from Visual Studio version, without the decimal (i.e. '15')
    • DEV[n] defined constant for conditional code compilation (i.e. #if DEV15, to compile only when building for VS2017). Gets n from $(Dev) value.
  • Smarter and simpler template authoring. Just set BuildAction to None on all your template content as well as the .vstemplate, and they become Smart Templates automatically:

    • Supports metadata to add shared artifacts to the generated ZIP files
    • Does not regenerate ZIP files if content didn't change
    • Supports linked files that are copied to the output directory

More in-depth tutorials on using this project is available in the wiki.

See the readme for the latest change log.


To install Clarius Visual Studio Targets, run the following command in the Package Manager Console:

PM> Install-Package Clarius.VisualStudio

Icon Infinity by Cengiz SARI from The Noun Project.

Build Status

This project is sponsored by Clarius Labs

Clarius Labs

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.