Search code examples
.netwixwix4

Support for .NET 6 in WixNetfxExtension


I am building an installer in Wix 3.14. I want to check if the .NET 6 runtime is already installed, and if not, offer a way to install it by downloading it (I don't want to include the .NET 6 runtime in the installer).

I found the following documentation of the WixNetfxExtension: https://wixtoolset.org/docs/v3/customactions/wixnetfxextension/

However, it only mentions .NET Framework, not .NET Core or .NET 5+. No matter how I search, I find no mentions of it whatsoever. Is there support for doing what I want for .NET 5+ with WixNetfxExtension?

I would be willing to upgrade to Wix 4, but I found no mentions of WixNetfxExtension at all in the Wix 4 documentation.


Solution

  • All the WiX v4 documentation on .NET, including detecting .NET Core/.NET >=5, is available at https://wixtoolset.org/docs/tools/wixext/dotnet/.