0

I am generating an CMS by using T4Scaffolder and all the CS files are being generated successfully. But also I want to add some css and png files to the project.

What is the best way to add static files to MVC Web Application with a powershell comment ?

I can even add css files to project by adding t4 templates for each one but I cannot do same thing for image files. I need something to copy a existing folder to the MVC Web Application project.

Barış Velioğlu
  • 5,709
  • 15
  • 59
  • 105
  • Have you checked out mvcscaffolding? Steven Sanderson has an excellent blog post on adding a custom collection of files. http://blog.stevensanderson.com/2011/04/08/mvcscaffolding-scaffolding-custom-collections-of-files/ – What Would Be Cool Jul 07 '13 at 22:41

1 Answers1

0

Build a nuget package, you will then be able to use both scaffolders as well as adding static content such as images etc

Uffe
  • 2,275
  • 1
  • 13
  • 9