I have an existing custom action project in .Net framework 4.8 and wix setup project v3. The goal is that I need to convert the framework project to SDK. I found out that WIX v3 doesn't support SDK projects and needs to move to WIX V4.
I tried below steps to convert-
To convert.Net framework to SDK I run the below commands and it converted successfully.
dotnet tool install --global Project2015To2017.Migrate2019.Tool dotnet migrate-2019 wizard <.csproj filepath>
To upgrade WIX v4, I run the below commands.
dotnet tool install --global wix --version 4.0.0-preview.0 wix convert Product.wxs wix build Product.wxs -o Product.msi
initially, I got a few errors for namespace and target directory but managed to resolve this.
Now the problem is SDK project doesn't generate .CA.dll file so how to generate this file to map in the .wxs for custom action to work?
Also if there is any better way to upgrade wix v4 , please suggest?