2

Arm64 Support for VS Extensions

 1 year ago
source link: https://devblogs.microsoft.com/visualstudio/now-introducing-arm64-support-for-vs-extensions/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Now Introducing Arm64 Support for VS Extensions!

Leslie-Richardson-e15367982641511-150x150.jpg

Leslie Richardson

September 22nd, 20220 0

Back in June, we announced Arm64 Visual Studio 2022 application, the first version of Visual Studio that natively supports building and debugging Arm64 apps on Arm-based processors.  Now, we’re excited to announce the extensions you write, and use, are supported in Arm64 VS!

Adding Arm64 support to your new or existing extension

Making your extension Arm64-compatible can be accomplished in three easy steps:

  1. In your extension solution, update the VSSDK Build Tools package to the latest version via NuGet Package Manager.
  2. In your VSIX manifest, add a ProductArchitecture tag specifying arm64 and make sure your Prerequisites tag includes VS 2022.

    ProductArchitecture TagProductArchitecture Tag for Arm64
  3. Under your project’s Properties > Build, set your build target to AnyCPU (or Arm64 if you want an Arm64-exclusive extension).

    Arm64 Build Settings
    Arm64 Build Property Settings

    Arm64 VSIX Manifest Installation Target
    VSIX Manifest with an Arm64 Installation Target

For more details on making your extension arm64-compatible (especially for native extensions), check out the updated documentation on migrating extensions.

Upload your new extension versions on a single Marketplace entry

Once you’ve updated your extension in VS, it’s time to publish your Arm64 extension to the Marketplace!  We are happy to announce that as an extension author, now you can publish your Arm64 extension alongside the amd64 (64-bit) version of your extension on a single Marketplace entry.

Arm64 single-page Consolidation example

Example of a single-Page consolidation for Arm64 extension version

In the browser-based Marketplace, you have the option to download the extension payload that’s right for your CPU architecture.  In Visual Studio’s Extension Manager, you will only see extensions compatible for VS instance.

How to submit Visual Studio 2022 AMD64 and Arm64 extension payloads?

The extension upload and publishing remains unchanged, whether you have already published a Visual Studio 2022 extension or want to publish a new extension.  Having a single entry for multiple payloads will help extension authors to reduce the number of extensions they have to maintain for each Visual Studio version.  If you’re an extension user, this will help you find the right extension for their needs.  To upload your Arm64 extension to an existing extension entry:

  1. Go to the Manage Publishers & Extensions page and click on Edit.

    Manage Extensions Page
    Manage Marketplace Extensions page
  2. Upload the new payload. Make sure the new payload has same extension identifier, version, and different target platform.
  3. Click on Upload and Save.

Once the payload is validated and is scanned for viruses, you’ll notice that the extension’s entry page now offers multiple download options.

What’s next for Arm64 extensions?

As part of the extension consolidation effort, we want to enable extension authors to merge their separate, existing extension listings for different VS versions into a single listing, which will further improve extension discoverability.

If you’re an extender, please share your feedback on the Arm64 migration experience and if you’re an extension user, be on the lookout for your favorite extensions in Arm64 Visual Studio!

Leslie Richardson Program Manager, Visual Studio Extensibility

Follow


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK