简体   繁体   中英

Visual Studio 2013 package issue

I have a Visual Studio package, that adds a window with some functionality in visual studio 2013. If I execute its vsix file, it installs nicely and I can see it in the menu (view/other windows) and the windows open fine. If I hit F5, it also works.

However, if I just copy the package files to C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\Extensions (what a regular setup would do), and start Visual Studio, the package doesn't seem to be detected by Visual Studio and it doesn't appear. Normally copying these files should be sufficient? Or am I missing something here?

The VSIX looks like:

 <?xml version="1.0" encoding="utf-8"?>
 <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
     <Identifier Id="3db0e2d9-11c5-4db8-9861-6935c8deb654">
     <Name>Test</Name>
     <Author>Test</Author>
     <Version>2.0</Version>
     <Description xml:space="preserve">Test</Description>
     <Locale>1033</Locale>
     <Icon>smiley-lol.ico</Icon>
     <InstalledByMsi>false</InstalledByMsi>
       <SupportedProducts>
         <VisualStudio Version="12.0">
           <Edition>Pro</Edition>
           <Edition>Premium</Edition>
           <Edition>Ultimate</Edition>
       </VisualStudio>
     </SupportedProducts>
   <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
   </Identifier>
   <References>
     <Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
        <Name>Visual Studio MPF</Name>
     </Reference>
   </References>
   <Content>
     <VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
   </Content>
 </Vsix>

EDIT: this used to work in VS2010, but not in VS2013.

Thanks, L

从Visual Studio 2012开始,VS会缓存已安装的程序包,并且要“注册”新复制的程序包,您需要运行“ devenv.exe / setup”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM