开发者

Intellisense in .skin files in ASP.NET 4

Is there a good way to apply intellisense in .skin files in ASP.NET 4? like a microsoft visual studio tool for开发者_如何学Go example? I installed an intellisense schema for .skin files to my visual studio 2008 long time ago but it had some bugs so i had to remove it. any improvements in visual studio 2010?


Try this: Tools -> Options -> Text editor -> File extensions. Now type skin in the extension textbox and select User Control Editor from the dropdownlist. Click Add.

Close and reopen your .skin files and - kablam! - you now have intellisense. Be aware that it's going to complain about .skin files not having their own build provider defined in the web.config. Still better than nothing, though.


<compilation debug="true" targetFramework="4.0" > <buildProviders> <add extension=".skin" type="System.Web.Compilation.PageBuildProvider"/> </buildProviders> </compilation>

If you add above code in web.config file you won't get that compile time warning.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜