I have a Cordova project with windows 10 platform added. I also have a native plugin, built as a Windows Runtime Component (https://github.com/apache/cordova-plugin-globalization). This works fine in debug mode, but when trying to make app packages for store submission strange things happen.
First of all, in .jsproj file UseDotNetNativeToolchain was set to false, if I create packages with that configuration, store complains about missing Windows.Net.Core. I found out this means that I need to enable .net native, so I did. After I submit such .appx package, store complains: "You cannot submit pre-compiled .NET Native packages. Please upload the Store appxupload file and try again." which I don't have.
After some digging I tried to make appxupload file without Visual Studio, using the MSBuild. I managed to compose a command which would produce an .appxupload, this was done with these command parameters: /p:Platform=x86;Configuration=Release /p:UapAppxPackageBuildMode=CI /target:Clean;Publish. Now the store didn't complain and app went through certification only to fail when I install it. It looks like .net native didn't pack the required native components of plugin correctly (.winmd, .dlls). And indeed when I just compile it in release mode with .net native enabled, I see these are not included.
I have to mention Cordova build command fails as it messes up appxmanifest file by setting application id to identity name which is not valid for this field. I couldn't find any official way of doing this, all the examples are for simple hello world apps, nothing that includes native plugins. So I wonder is this even possible to do, build cordova project using .net native and producing valid .appxupload packages?