none
[UWP] Unable to create vsix extension for Universal Windows app RRS feed

  • Question

  • I have a Windows Phone 8 app which I am porting to Windows-10. The app used .vsix extensions for Windows Phone 8, hence I am trying to create a similar .vsix extension for Universal Windows app as well.

    My SDKManifest.xml file is as follows:

    <?xml version="1.0"
     encoding="utf-8" ?>
    <FileList
     Identity = "Gracenote.UWP"
     Version = "1.0"
     DisplayName = "Gracenote Universal Windows SDK"
     TargetPlatform="UAP"
     MinVSVersion = "14.0"
     SDKType="External"
     SupportedArchitectures = "x64;ARM"
     SupportsMultipleVersions = "Error"
     TargetPlatformMinVersion="10.0.10069.0"
     TargetPlatformVersion="10.0.10069.0">
     <File 
    Reference="Gracenote.winmd" 
        Implementation="Gracenote.dll"/>
    </FileList>

    My VSIX Manifest file is   

    <PackageManifest Version="2.0.0"
     xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
     <Metadata>
        <Identity
     Id="Gracenote.UWP"
     Version="1.0"
     Language="en-US"
     Publisher="Gracenote Inc" />
        <DisplayName>Gracenote SDK for Universal Windows</DisplayName>
        <Description>Gracenote SDK</Description>
        <License>license.txt</License>
      </Metadata>
      <Installation AllUsers="true" Scope="Global">
    <InstallationTarget Id="Microsoft.ExtensionSDK"
    TargetPlatformIdentifier="Windows Kits"
    TargetPlatformVersion="10"
    SdkName="GracenoteSDK.winphone8"
    SdkVersion="1.0" />
      </Installation>
      <Assets>
        <Asset Type="Microsoft.ExtensionSDK" Path="SDKManifest.xml" />
      </Assets>
    </PackageManifest>

    I have all these xml files along with required dll's in a folder say "myVsix". I then zip this folder to creater "myVsix.zip"
    Then I rename this to "myVsix.vsix" to create a .vsix file.
    When I try to install this by double clicking on the file, I get the following error:
    This VSIX package is invalid because it does not contain the file extension.vsixmanifest at the root. The VSIX file may be corrupted.

    This is the error log:

    3/3/2016 5:46:30 PM - Microsoft VSIX Installer
    3/3/2016 5:46:30 PM - -------------------------------------------
    3/3/2016 5:46:30 PM - Initializing Install...
    3/3/2016 5:46:30 PM - Microsoft.VisualStudio.ExtensionManager.MissingPackagePartException: This VSIX package is invalid because it does not contain the file extension.vsixmanifest at the root. The VSIX file may be corrupted.
       at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream vsixStream, CultureInfo preferredCulture)
       at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
       at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
       at VSIXInstaller.App.InitializeInstall()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

    Can you kindly, let me know, what is wrong here??

    Thanks,

    Ganesh


    Friday, March 4, 2016 2:13 AM

Answers

  • What method are you using to create the .zip file? Can you view the .zip and confirm the extension.vsixmanifest is in the root of the zip, and not in some subfolder? Can you try using a different method to zip the file, and does that work?

    Thanks,


    Ed Dore

    • Marked as answer by ganeshskudva Monday, March 14, 2016 7:17 PM
    Saturday, March 12, 2016 4:25 AM
    Moderator
  • Hi Ed, 
            Thanks for your response.
    Yeah, If I invoke devenv.exe from command line, I am able to create the .vsix successfully.

    That resolves my issue, as my Build Server invokes VS from command line.

    Thanks,

    Ganesh

    • Marked as answer by ganeshskudva Monday, March 14, 2016 7:17 PM
    Monday, March 14, 2016 7:17 PM

All replies

  • Hi ganeshskudva,

    Move to Visual Studio Integrate forum for a better support, thanks for your understanding :)

    Best Regards,

    Xavier Eoro


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 7, 2016 6:44 AM
  • Hi ganeshskudva,

    >>Unable to create vsix extension for Universal Windows app

    What did you want to implement with this vsix extension? As we know, VS extension could extend the core IDE experience with additional templates, code refactoring, new dialogs or tool windows. Please provide more information for further discussion.

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, March 8, 2016 9:47 AM
    Moderator
  • Hi Li Wang,

                    Thanks for the response.
    Our app provides audio recognition & discovery features. We have our native SDK's written in C/C++. We package our native SDK as a .dll & create .vsix extension which can be extended with Visual Studio.

    If I use Visual Studio GUI(Graphical User Interface) to create this .vsix extension, everything works fine & I am able to use the extension.
    But I am interested in creating this extension manually. Our build system is automated, hence we cannot use Visual Studio GUI to create this extension. The build system just copies the necessary resources required to create the extension to a folder, zips the folder & renames it to .vsix. This used to work fine until prior to Windows 10 (VS-2015). But now with VS-2015 & Windows-10, I tried the same method but it unfortunately doesnt seem to work.

    Any help in this regard will be highly appreciated.

    Thursday, March 10, 2016 1:56 AM
  • What method are you using to create the .zip file? Can you view the .zip and confirm the extension.vsixmanifest is in the root of the zip, and not in some subfolder? Can you try using a different method to zip the file, and does that work?

    Thanks,


    Ed Dore

    • Marked as answer by ganeshskudva Monday, March 14, 2016 7:17 PM
    Saturday, March 12, 2016 4:25 AM
    Moderator
  • Hi Ed, 
            Thanks for your response.
    Yeah, If I invoke devenv.exe from command line, I am able to create the .vsix successfully.

    That resolves my issue, as my Build Server invokes VS from command line.

    Thanks,

    Ganesh

    • Marked as answer by ganeshskudva Monday, March 14, 2016 7:17 PM
    Monday, March 14, 2016 7:17 PM