Quick Starts: Visual Studio Content Installer

可能我们非常喜欢在写一些Add-ins,Item templates,controls, code snippets等, 等完成之后自然想集成进Visual Studio里去.
为些我们需要开始一个Visusal Studio Content Installer(.vsi) 文件.

VSI文件实际上就是一个Zip文件,它里面包含两部分:
(1)一个XML格式的.vscontent结尾的文件,用以描述其中的内容.
(2)所有的内容文件

VS会把所有的VSI文件的信息保存在ContentInstallerHistory.xml 的文件里,它的路径是%RootDrive%\Documents and Settings\\My Documents\Visual Studio 2005 下.

具体可以参考:
(1)How to: Package Community Components to Use the Visual Studio Content Installer 
(2) Visual Studio Content Installer Schema Reference

不过在网上发现了一个免费的Vsi Builder的工具


更多的还可以看:
Packaging Your Snippets For Distribution

这里上传一个Sample的vscontent文件 希望能对大家有帮助。我也在学习中。

<?xml version="1.0" encoding="utf-8"?>
<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
  
<Content>
    
<FileName>Save Window Location Settings.snippet</FileName>
    
<DisplayName>Save Window Location Settings</DisplayName>
    
<Description>Saves a windows location to settings if the window is a normal state.</Description>
    
<FileContentType>Code Snippet</FileContentType>
    
<ContentVersion>1.0</ContentVersion>
    
<Attributes>
      
<Attribute name="lang" value="VB" />
    
</Attributes>
  
</Content>
</VSContent>



posted @ 2008-07-10 21:48  卜海清  阅读(423)  评论(0编辑  收藏  举报