浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

IntelliSense for WiX .wxs files

昨天看了一点Rob.的演讲,看到他在用VS.NET里面写XML可以自动感知,很想实现一下。今天找到了:
http://weblogs.asp.net/sweinstein/archive/2004/08/31/223461.aspx

I recently started looking into WiX as a replacement tool to create the install kit for NatLink and Vocola. It's not that I want to make life more difficult, but Visual Studio .Net setup projects don't support features.

WiX of course does.

The problem is that Visual Studio, by default, doesn't recognize .wxs files as XML. The fix for that is the following

1) 在注册表中增加:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Editors\{C76D83F8-A489-11D0-8195-00A0C91BBEE3}\Extensions]
"wxs"=dword:00000028

2) 从 WiX/doc 目录复制文件 wix.xsd 和 wixloc.xsd 到

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml\

and provided you reference the WiX namespace at http://schemas.microsoft.com/wix/2003/01/wi you'll get IntelliSense too.

posted on Tuesday, August 31, 2004 2:53 PM

posted on 2004-10-18 09:56  浙林龙哥  阅读(1354)  评论(2编辑  收藏  举报