Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Unable to create vsix extension for Universal Windows app

$
0
0

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 .vsixfile.
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


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>