gpt4 book ai didi

c# - .net native 用于桌面应用程序

转载 作者:行者123 更新时间:2023-11-30 16:42:39 25 4
gpt4 key购买 nike

以前,.NET Native Toolchain 仅适用于 Windows 应用商店应用程序和 UWP 应用程序。从我读到的关于 VS2017 和 .NET Native 1.6 的内容来看,这些限制中的一些或全部可能不再存在,但信息有点困惑,所以:

  1. 我现在可以将 .Net native 工具链用于带有 Visual Studio 2017(或更早版本)的现有 C# 桌面(非 Windows 应用商店)应用程序吗?
  2. 应用程序必须使用 UWP 还是可以是现有的 WPF 应用程序?
  3. 如果它不能是 WPF,我是否仍可以创建一个 .Net Native 非 GUI 程序集,然后供常规 JIT WPF 应用程序使用?我想我需要确保在任何一个方向上都没有使用反射,但我怀疑这根本不可能。

最佳答案

Can I now use .Net native toolchain for an existing C# Desktop (non-Windows Store) application with Visual Studio 2017 (or earlier)?

不,.NET Native 仅适用于 UWP 应用。

2) Does the application have to use UWP or can it also be an existing WPF application?

它必须是 UWP 应用程序。 WPF 不支持 .NET Native。

3) If it cannot be WPF, could I still create a .Net Native non-GUI assembly that can then be used by a regular JIT WPF application?

没有。 WPF 需要完整的 .NET Framework 及其所需的一切。

关于c# - .net native 用于桌面应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46451536/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com