.Net Framework 版本是否决定了您的 WPF 版本?

发布于 2024-10-02 10:34:25 字数 216 浏览 0 评论 0原文

看起来这是一个愚蠢的问题,但我需要一些……实质性的东西。

我在VS2010中有一个应用程序,其目标框架是3.5。如果我将其更改为使用 .Net Framework 4.0,它是否也会自动“更新”以使用 WPF 4.0?

我无法在任何地方找到明确的说明,我发现的最接近的内容是“WPF 的所有未来版本都将成为 .NET Framework 的一部分”。这似乎暗示了这一点,但我想确定一下。

Seems like this is a dumb question, but I need something... substantial.

I have an application in VS2010 whose target framework is 3.5. If I change it to use .Net framework 4.0, will it automatically "update" to use WPF 4.0 as well?

I could not find this stated explicitly anywhere, and the closest thing I found was "All future releases of WPF will be part of the .NET Framework." which seems to imply this, but I'd like to be sure.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸里的那抹悲凉 2024-10-09 10:34:25

是的。如果您使用的是 .NET Framework 4.0,那么您正在使用 WPF4。我不认为他们是独立的。它们始终与 .NET 版本相关。当人们将 .NET 3.0 WPF 1.0 称为 WPF 的初始版本时,它确实需要进行一些配置。

但对于开发人员来说,只有 .NET 版本很重要,因为它定义了您正在使用的 WPF API 更改/版本。

Yes. If you are using .NET Framework 4.0 then you are using WPF4. I don't think they are independent. They have always been tied to .NET releases. It does get a little configuring when people call .NET 3.0 WPF 1.0 as that was the initial release of WPF.

But to a developer, only .NET version matters as that defines what WPF API changes/version you are using.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文