Wix toolset version 4 with Managed BootstrapperApplication (created in .net framwework 4.8) #8649
-
We had created a Managed Bootstrapper Application with the below version:
Now, we are in the process of upgrading our WiX project (both Bundle and Setup project) from version 3.14 to version 5 using FireGiant's HeatWave extension in Visual Studio 2022. After upgrading, we are encountering the following errors with the BA project:
After encountering an error, we found a document indicating that Managed BA and Custom Action projects should be migrated from .NET 4.8.1 to .NET Core 6+ when transitioning from WiX toolset 3.14 to 5. Need help with the below,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Is that document one of ours? If so, can you share the link to it so we can fix it? That document is wrong. |
Beta Was this translation helpful? Give feedback.
-
Including .NET desktop runtime? I haven't found a practical workaround for this. I'm personally not a fan of using .NET Core for my BAs because of this. Can WiX toolset 4 or 5 be used with the BA project which is in .NET Framework 4.8.1? Presumably you're asking if your WiX 3 BA can be used with 4 or 5? Not easily. The gotcha here is that some of Burn's BA events were renamed and some of the event args changed as well. Go through each event handler in your old BA and work it for the new events... meh, yeah, it can be done. My tutorial briefly mentions the challenges around upgrading, but honestly, it's not likely to be much help to you. https://github.com/rsmart8452/Wix4BurnTutorial/wiki Do we have a document that specifies the minimum .NET framework supported by all versions of the WiX toolset? The WiX source is the best documentation we have. As you can see in their full framework unit test, the devs are currently targeting 4.7.2. https://github.com/wixtoolset/wix/blob/ce73352b1fa1d4f9cded10a0ee410f2e786bd326/src/ext/Bal/test/examples/FullFramework4MBA/App.config |
Beta Was this translation helpful? Give feedback.
I believe .net framework 4.8.1 is still fine.