Skip to content

In v3 we had "WixExtension" - how to upgrade extension to v5 or in which nuget this class exicts? #8729

Answered by vdrasutis
vdrasutis asked this question in Questions
Discussion options

You must be logged in to vote

I think I find how to.
The project has to include:

<PackageReference Include="WixToolset.Extensibility" Version="5.0.1" />

and "MyWixFileVersionExtension" should be like this:

using System;
using WixToolset.Extensibility;
using WixToolset.Extensibility.Services;

namespace MyWixFileVersionExtension
{
    public class MyWixFileVersionExtension : IExtensionFactory //WixExtension
    {
        private MyWixFileVersionPreprocessorExtension _versionPreprocessorExtension;

        public MyWixFileVersionExtension(IWixToolsetCoreServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        /// <summary>
        /// This exists just to show it is p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vdrasutis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant