ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

MSBuild

by tillig ALL

Sublime Text package for editing and executing MSBuild scripts.

Details

Installs

  • Total 6K
  • Win 6K
  • Mac 464
  • Linux 234
Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15
Windows 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeMSBuild

Sublime Text package for editing and executing MSBuild scripts.

Overview

Sublime Text is a highly-customizable text editor that allows you to add functionality through use of “packages.” This package adds the following functionality for MSBuild:

  • MSBuild file extension handling:
    • .proj
    • .targets
    • .msbuild
    • .csproj
    • .vbproj
    • .fsproj
    • .vcxproj
  • Build system: Execute the currently loaded MSBuild script and capture the results in the output pane. Includes variants for 'Parallel,' 'Debug,' and 'Release' configurations.
  • Syntax highlighting:
    • MSBuild keywords and flow-control elements
    • Standard MSBuild tasks
    • C#/VB special project item elements
    • Well-known item metadata and functions
    • Reserved properties
    • Variables
    • Conditional operators
    • Framework support functions
    • Comment blocks
  • Snippets:
    • New MSBuild Script
    • Comment blocks [trigger = c + tab]
    • Self-closing/simple tags [trigger = > + tab]
    • Content/end-tag tags [trigger = < + tab]
  • Autocompletion:
    • Standard/default tasks (e.g., CallTarget, CombinePath, MakeDir)
    • Project file entities (e.g., Target, Choose, Import)
    • Common item definitions (e.g., Compile, Reference, EmbeddedResource)
    • Well-known item metadata references (e.g., %(Item.FullPath))
    • Reserved properties (e.g., $(MSBuildProjectDirectory))
    • MSBuild Community Tasks (if the MSBuild.Community.Tasks.Targets file is imported)
    • C#/VB special project item elements (e.g., Reference, Compile)
    • Supported framework method calls (e.g., $([System.DateTime]::Now))

Installation

Install the package through Sublime Package Control. Sublime Package Control is a package manager for Sublime Text. If you don't have it, you can install it and then install the MSBuild package by going to the command palette (Ctrl + Shift + P), selecting “Package Control: Install Package,” and then selecting the MSBuild package from the list.

License

MIT License

Build System MSBuild.exe Fallback

Most Sublime Text build systems assume you have the build executable (MSBuild.exe) in your path. The system included here dynamically looks for MSBuild.exe in the .NET framework folders in the event you don't already have it in your path. The fallback order is v4.0.30319 -> v3.5 -> v2.0.50727. If you want to modify that fallback order, edit the MSBuild.sublime-build file in your Data\Packages\MSBuild folder.

Package Developers

If you want to modify the syntax highlighter or otherwise work on enhancing the package to suit your needs, it's recommended you get the AAAPackageDev package for Sublime Text. This allows you to edit syntax files in .JSON-tmLanguage format and compile them into PList rather than manually editing PList directly. It also has several helpers/templates for adding functionality to Sublime Text packages.

Additional helpful links: