The easiest way to solve this problem , is using msix package builder from pub.dev. When you do build with this package ,it includes al lnecessary libraries for MSIX build .
https://pub.dev/packages/msix