Skip to content

A MSBuild custom logger for easy RegEx parsing with the Sublime Build System

Notifications You must be signed in to change notification settings

wpoch/SublimeLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a custom MSBuild logger in order to facilitate the Sublime Build System RegEx parsing (http://sublimetext.info/docs/en/reference/build_systems.html).

In order to create a Build System for .net projects you should:

1. Clone this project and build it.
2. Go to Sublime and go to: Tools->Build Systems->New Build System
3. Paste this:

	{
		"cmd": ["msbuild.exe", "${project_path}/${project_base_name}.sln","/noconsolelogger", "/logger:C:\\Projects\\SublimeLogger\\SublimeLogger\\bin\\Debug\\SublimeLogger.dll"],
	    "file_regex": "^\\s[*]([^(]*)[(]([0-9]*)[,(][0-9]*[)][:](.*)$",
		"path": "%systemroot%/Microsoft.NET/Framework/v4.0.30319"
	}

	Where C:\\Projects\\SublimeLogger\\SublimeLogger\\bin\\Debug\\SublimeLogger.dll is the escaped path to the compiled logger that you just build.

4. Save it.
5. Open a .net folder project in Sublime where the .sln file is located.
6. Save the Sublime project (Project->Save Project As) and use THE SAME name as the .sln .net solution.

Now you can by pressing F7 build the solution, and if the compilation fails you could use F4 and Shift+F4 to loop between the files with compilation errors.



If you have any issues don't hesitate to contact me directly or fill a bug.

About

A MSBuild custom logger for easy RegEx parsing with the Sublime Build System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages