bennor / AutoT4MVC

A zero-configuration Visual Studio 2012+ extension for automatically running T4MVC templates on build and when files are modified in paths that T4MVC cares about.

Home Page:http://bennor.github.io/AutoT4MVC/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse settings from T4MVC.tt.settings.xml to determine which folders to monitor for changes.

bennor opened this issue · comments

Rather than checking a file's path against a list of common static file folder names, it would be great if AutoT4MVC simply read the settings out of the configuration file that T4MVC already uses. That way it should work no matter how someone has chosen to structure their project.

For this to happen, it needs to parse out the relevant settings at the time when the extension is loaded (and any time the settings file is updated) and use this information to create a customised list of folders to watch which will differ per project.

This issue was partially addressed in PR #13 which parses T4MVC.tt.settings.xml file.

The .t4 settings file format was replaced at T4MVC xmlsettings patch 24cc121c697f in Oct 2012.

Do we still want to add support for this format?

No. It was replaced a long time ago and it's a lot harder to work with, so it's not worth the effort.