Conditionally renaming a file before copying from content folder

Apr 11, 2011 at 5:45 AM

I have a very simple package, T4AppSettings, that I would like to have a quick check in the project file before the content file is dropped in the project.  If there is an app.config would like the template file to be called appconfigsettings.tt and if there is a web.config I would like the template file to be called webconfigsettings.tt.

Thanks,
Eric

Apr 11, 2011 at 7:10 AM

You should be able to do this by writing custom logic in install.ps1. Hopefully, someone has done similar type of things before that would give you a good example to start from.