• 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>



  • 相关阅读:
    psp4
    一维循环数组最大子数组求解
    psp3
    psp2
    求二维数组最大连续子数组
    计算连续最大子数组问题
    psp1
    关于30道题目问题
    Java 文件操作
    java iterator
  • 原文地址:https://www.cnblogs.com/buhaiqing/p/1240283.html
Copyright © 2020-2023  润新知