Transfor Razor web.config

Mar 13, 2011 at 1:49 PM



I want to build a package for ASP.NET MVC 3 applications with Razor.

With Razor, the application contains 2 web.config files, the classical one and another in the Views folder, with Razor specific elements.


I want to apply transforms to Views/web.config but I didn't found any way to configure the NuGet package correctly.

Any idea ?



Mar 13, 2011 at 5:31 PM

What did you try? If you put the web.config in content\Views\web.config.transform it should be applied. What issues did you have?

Mar 13, 2011 at 6:28 PM

Thanks for your help. I was just forgeting the "content" folder and I now have a working package :-)