Build provider for .skin files in ASP.NET

You might have noticed that there is no intellisense in .skin files. No despair, there is a simple solution.

  1. Go to Tools > Options > Text Editor > File Extension
  2. Add “skin” to file type and select “User Control with Encoding”. This will give you intellisense next time you open or create a .skin file. You will also get a warning from the compiler about that added file extension. Basically compiler doesn’t know what build provider to use for the “.skin”file.
  3. Add  this entry below to the we.config file to explicitly set the provider.
<system.web>
<compilation debug=”true”>
<buildProviders>
<add extension=”.skin” type=”System.Web.Compilation.PageBuildProvider”/>
</buildProviders>
<system.web>

Hope this helps