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.
http://bennor.github.io/AutoT4MVC/
MIT License
24 stars 9 forks source link

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

Closed bennor closed 10 years ago

bennor commented 11 years ago

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.

garysharp commented 10 years ago

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?

bennor commented 10 years ago

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