bsivanov / Open-XML-Package-Editor-Power-Tool-for-Visual-Studio

This Power Tool is a Visual Studio add-in that provides an easy way to parse and edit Open Packaging Conventions files, including Word, Excel and PowerPoint documents.
17 stars 4 forks source link

Support Visual Studio 2022 (ARM 64) #9

Open sergey-tihon opened 5 days ago

sergey-tihon commented 5 days ago

It is hard to support ARM 64 edition of VS 2024?

Currently, install fails with following error

9/26/2024 12:01:12 PM - Microsoft VSIX Installer
9/26/2024 12:01:12 PM - -------------------------------------------
9/26/2024 12:01:12 PM - vsixinstaller.exe version:
9/26/2024 12:01:12 PM - 17.11.435+d5e02aaeb0
9/26/2024 12:01:12 PM - -------------------------------------------
9/26/2024 12:01:12 PM - Command line parameters:
9/26/2024 12:01:12 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,\\Mac\Home\Downloads\OpenXMLEditor.vsix
9/26/2024 12:01:12 PM - -------------------------------------------
9/26/2024 12:01:12 PM - Microsoft VSIX Installer
9/26/2024 12:01:12 PM - -------------------------------------------
9/26/2024 12:01:13 PM - Initializing Install...
9/26/2024 12:01:13 PM - Searching for applicable products...
9/26/2024 12:01:14 PM - Found installed product - Visual Studio Enterprise 2022
9/26/2024 12:01:14 PM - Found installed product - Global Location
9/26/2024 12:01:14 PM - Extension Details...
9/26/2024 12:01:14 PM -     Identifier         : ac41218c-c632-413c-b108-a9ecbbaabb90
9/26/2024 12:01:14 PM -     Name               : Open XML Package Editor for Modern Visual Studios
9/26/2024 12:01:14 PM -     Author             : Borislav Ivanov
9/26/2024 12:01:14 PM -     Version            : 2.0.1
9/26/2024 12:01:14 PM -     Description        : Parse and edit Open Packaging Conventions files, including Word, Excel, PowerPoint and Visio documents. Fork of the original Open XML Package Editor for Visual Studio extension by Microsoft.
9/26/2024 12:01:14 PM -     Locale             : en-US
9/26/2024 12:01:14 PM -     MoreInfoURL        : 
9/26/2024 12:01:14 PM -     InstalledByMSI     : False
9/26/2024 12:01:14 PM -     SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
9/26/2024 12:01:14 PM -     SignatureState     : Unsigned
9/26/2024 12:01:14 PM -     Supported Products : 
9/26/2024 12:01:14 PM -         Microsoft.VisualStudio.Community
9/26/2024 12:01:14 PM -             Version : [15.0,17.0)
9/26/2024 12:01:14 PM -             ProductArchitecture : x86
9/26/2024 12:01:14 PM -         Microsoft.VisualStudio.Community
9/26/2024 12:01:14 PM -             Version : [17.0,18.0)
9/26/2024 12:01:14 PM -             ProductArchitecture : amd64
9/26/2024 12:01:14 PM -     References         : 
9/26/2024 12:01:14 PM -     Prerequisites      : 
9/26/2024 12:01:14 PM -         -------------------------------------------------------
9/26/2024 12:01:14 PM -         Identifier   : Microsoft.VisualStudio.Component.CoreEditor
9/26/2024 12:01:14 PM -         Name         : Visual Studio core editor
9/26/2024 12:01:14 PM -         Version      : [15.0,)
9/26/2024 12:01:14 PM - Signature Details...
9/26/2024 12:01:14 PM -     Extension is not signed.
9/26/2024 12:01:14 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

image

bsivanov commented 2 days ago

I don't know. This is some relevant information:

The extension is currently referencing Microsoft.VisualStudio.Sdk v15 and is not referencing Microsoft.VSSDK.BuildTools at all. I can try to upgrade, but I am not sure it would work.

@sergey-tihon if I manage to produce a build, would you be able to test it?

sergey-tihon commented 2 days ago

@sergey-tihon if I manage to produce a build, would you be able to test it?

Yes, sure, with pleasure.

bsivanov commented 2 days ago

Hm, that went surprisingly easy, I would say even suspiciously easy 😄. @sergey-tihon, could you try it?

This is the branch I used: https://github.com/bsivanov/Open-XML-Package-Editor-Power-Tool-for-Visual-Studio/commit/24ba56144eaaa1b7636d8cb0060ba2cbb4122016, I just added Preview flag in addition to the .vsixmanifest for this build.

OpenXMLEditor.zip

sergey-tihon commented 2 days ago

It works like a magic! Thank you!

image image
bsivanov commented 2 days ago

Nice, I'll test some more with the older VS versions and publish the official build on the marketplace. Yours was build in Debug but I guess it's OK to use it for a few days. Thanks for testing it!