[wix-devs] Dtf repository MakeSfxCA and SfxCa tools

Sean Hall r.sean.hall at gmail.com
Fri Jun 5 03:43:15 PDT 2020

If you're interested in doing the MSBuild integration as well, that would
be great. The problem is that I don't know what exactly Rob means by an
SDK-style MSBuild Nuget package.

If you follow the example of WixToolset.MSBuild from the Tools repo, you'd
create a Nuget package called... I don't know. WixToolset.MSBuild.CA?
WixToolset.ManagedCA? Let's pretend it's WixToolset.Dtf.MSBuild. You'd
setup a build folder in the nuget package containing
WixToolset.Dtf.MSBuild.props which initializes a Property named something
like WixCATargetsPath to the path of wix.ca.targets. wix.ca.targets would
be in the tools folder, and so would MakeSfxCA.exe. There would be platform
specific folders for SfxCA in the tools folder.

After that, you'd need to know a lot about MSBuild in order to bring
wix.ca.targets up to date so that it can be used in an SDK-style csproj.

But is that an SDK-style MSBuild Nuget package? When I hear that, I can't
help but think that we're trying to get something like this to work:

<Project Sdk="WixToolset.CA.Sdk">
    <PackageReference Include="WixToolset.Dtf.MSBuild" />

But I don't know if that's even possible without installing something into
MSBuild's main directory.

On Fri, Jun 5, 2020 at 5:04 PM <ksociety85 at gmail.com> wrote:

> Don't worry, now that I've done some exercise I can edit the original ones.
> I will study the suggested examples.
> The MSBuild integration seems to be very interesting, however I must be
> able
> to call MakeSfxCA directly for compatibility reasons.
> But nobody forbids us to prepare both solutions, what to you think about
> this?
> Thanks for your help.
> -----Original Message-----
> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Sean
> Hall via wix-devs
> Sent: giovedì 4 giugno 2020 23:59
> To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
> Cc: Sean Hall <r.sean.hall at gmail.com>
> Subject: Re: [wix-devs] Dtf repository MakeSfxCA and SfxCa tools
> That doesn't sound right. All of the SfxCA and MakeSfxCA files were already
> in the Dtf repo, you shouldn't have needed to copy them - just update them
> in place.
> You'd have to check https://github.com/wixtoolset/wix4/tree/develop/test
> to
> see if we had any tests around this. Ideally you would be able to create a
> test project in the Dtf repo and at least write a test that the managed CA
> dll can be built with MakeSfxCA (maybe just try to build the sample?). The
> existing tests in the Dtf repo are the folders that start with
> WixToolsetTests in https://github.com/wixtoolset/Dtf/tree/master/src.
> MSBuild integration means that you're not calling MakeSfxCA directly,
> you're
> using an MSBuild project that eventually loads wix.ca.targets which has the
> logic of calling MakeSfxCA. Based on the code snippet you gave, you're not
> using the MSBuild integration.
> On Fri, Jun 5, 2020 at 3:52 AM Maniglia via wix-devs <
> wix-devs at lists.wixtoolset.org> wrote:
> > Just a small update.
> >
> > After several attempts I am able to compile the projects.
> >
> > I started by creating a new project with platform toolset "Visual
> > Studio
> > 2017 (v141)" and
> > I copied the source files for SfxCA and I did the same for MakeSfxCA.
> >
> > I did a simple test and it seems to work.
> > How can I do some other tests?
> >
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-devs mailing list