简体   繁体   English

Visual Studio 2013套件问题

[英]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. 我有一个Visual Studio程序包,它在Visual Studio 2013中添加了一个具有某些功能的窗口。如果执行其vsix文件,它会很好地安装,并且可以在菜单(视图/其他窗口)中看到它,并且窗口可以正常打开。 If I hit F5, it also works. 如果我按F5,它也可以工作。

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. 但是,如果我只是将程序包文件复制到C:\\ Program Files(x86)\\ Microsoft Visual Studio 12.0 \\ Common7 \\ IDE \\ Extensions(常规安装会执行此操作),然后启动Visual Studio,则程序包似乎不会被Visual Studio检测到并且没有出现。 Normally copying these files should be sufficient? 通常复制这些文件就足够了吗? Or am I missing something here? 还是我在这里想念什么?

The VSIX looks like: VSIX看起来像:

 <?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. 编辑:这曾经在VS2010中工作,但在VS2013中却没有。

Thanks, L 谢谢L

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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