Replies: 3 comments 4 replies
-
I've thought about making an extension and publishing to nuget to support this but honestly .NET is shipping every month these days. I have personally found it easier to just setup a publish profile for my app and deploy it with a private copy of .net. This avoids the need for a bootstrapper and in a corp environment that's a good thing because MDM tools handle MSIs easier. It does mean even my tiniest apps are a few dozen MBs in size but it's not the end of the world. |
Beta Was this translation helpful? Give feedback.
-
I went ahead and created this repos https://github.com/iswix-llc/IsWiX.NetCore and published release v1.0.0 containing the wixlib. Currently the supported PackageGroupRefs are DotNetDesktop6022Redist and DotNetDesktop7011Redist. Course now that I type this I realize I should have but bitness in their names. If you don't want to help with this and just want 6+ without pulling down a wix lib you can find the fragment here https://github.com/iswix-llc/IsWiX.NetCore/blob/main/Installer/IsWiX.NetCore/Net6/DesktopRuntime/DesktopRuntime-x64-6.0.22.wxs It is totally self contained. Just add a reference to NetFx for DotNetCoreSearch to function. |
Beta Was this translation helpful? Give feedback.
-
My implementation currently does 1 and could be extended to support 2. 3 is a pretty complex beast that would need custom code outside of what WiX currently can do. 4 isn't possible or really advised. Things like .NET and C++ runtimes are best left installed forever. There is no universal mechanism for knowing if anything installed on the machine needs them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been reading the WiX v4 docs and searching the internet on multiple occasions, and it's not clear what the equivalent method would be to start using .NET 6 instead of a .NET Framework package group. I saw https://github.com/orgs/wixtoolset/discussions/7381#discussioncomment-5567881. It explains the reasons that the WiX maintainers don't want to ship the same kind of support for folks who depend on .NET shared runtimes. That makes sense. In this case, could you please have a page with sample code and steps describing what to do in order to implement it yourself? What are people doing today? What is recommended?
https://wixtoolset.org/docs/tools/wixext/dotnet/#net-and-net-core seems like a good place for this content, or from which to link this content.
I'd be happy to contribute the docs myself and I'm absolutely willing to get my hands dirty, but I'm still lacking a starting point and I'm sure I'd miss some subtleties that would turn out to be important in a docs page that would become an essential resource for many apps. What's a way to implement this in WiX v4 that would be of interest to folks who are coming from the
NetFx48Web
package group (for instance) and moving their app to .NET 6+?Beta Was this translation helpful? Give feedback.
All reactions