在所有 3 个平台(x86、x64、ARM)中将 UWP 应用上传到 Microsoft Store [英] Upload UWP app to Microsoft Store in all 3 platforms (x86, x64, ARM)
问题描述
我在我的 UWP 应用中引用了一个 3rd 方 DLL(在所有 3 个平台 x86、x64 和 ARM 中).由于这个原因,每次我需要将我的 UWP 应用程序构建到特定平台时,我都必须手动更改我的参考.
I have a 3rd party DLL (in all 3 platforms x86, x64 and ARM) referring in my UWP app. Due to this reason I have to change my reference manually each time I need to build my UWP app to specific platforms.
现在我需要将应用发布到商店,但由于手动处理第 3 方 DLL,我无法选择所有平台.我尝试在发布模式下单独构建应用程序并尝试上传到商店,但它不允许.唯一可能的方法是在 crate 应用程序包窗口中选择所有 3 个平台.
Now I need to publish the app to the store but I can't select all platforms due to the manual handling of the 3rd party DLL. I tried building the app in release mode separately and tried to upload to the store but it does not allow. Only way possible is by selecting all 3 platforms in the crate app package window.
请帮助我找到一种上传支持所有 3 个平台的应用程序的方法.提前致谢.
Please help me to find a way to upload the app supporting all 3 platforms. Thanks in advance.
注意:我不能使用 any-cpu 选项,因为 dll 和应用程序都引用了不支持 any-cpu 的 SQLite 库.
NOTE: I can't use any-cpu option since the dll and the app both refers to SQLite libraries which do not support any-cpu.
推荐答案
您可以使用预构建事件来更改每次构建之前要导入的 Dll
You can use a prebuild event to change which Dll to import before each build
copy "$(ProjectDir)\Extensions\$(PlatformName)\IronOne.Converter.Windows.dll" "$(ProjectDir)"\Extensions\Active"
从那里你可以改变你的 DllImport
到 $(ProjectDir)"\Extensions\Active
From there you can just change your DllImport
to $(ProjectDir)"\Extensions\Active
这篇关于在所有 3 个平台(x86、x64、ARM)中将 UWP 应用上传到 Microsoft Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!