1

I'm experimenting with ClientBuildManager.PrecompileApplication in order to force compiling of my ASP.NET site.

I've added a ClientBuildManagerCallback and trace all calls to ReportProgress() method. Clearly the precompilation will traverse Content and some other subfolders of the site where I have no views and so nothing to precompile, so going into those directories is a waste of time.

Is there a way to exclude specific folders from precompilation?

Community
  • 1
  • 1
sharptooth
  • 167,383
  • 100
  • 513
  • 979

1 Answers1

1

Not that I am aware and looking through the MSDN docs seems to support that. To do what you want to do I think you would have to write an MSBuild task which, of course, defeats what you are trying to do with ClientBuildManager.PrecompileApplication.

dparsons
  • 2,812
  • 5
  • 28
  • 44