我可以使用 Prism 5.0 制作 .NET 4.0 WPF 应用程序吗?
Can I use Prism 5.0 to make a .NET 4.0 WPF application?
在 documentation 它提供了一条注释说
"Note: For .NET 4.0, Silverlight, or Windows Phone 7.x applications use Prism 4.1."
system requirements 中的 Prism 5.0 指南说
"WPF applications built using this guidance require the .NET Framework 4.5"
Prism 5.0 是否包含 Prism 4.x 包含的所有内容以及新内容?如果是这样,那么我可以只安装 Prism 5.0 但遵循 Prism 4.1 的指南吗?
或者他们是否重写了某些东西以依赖于 .NET 4.5?
不,您不能将 Prism 5.0 与 .NET 4.0 一起使用。
原因是 Prism 5.0 代码使用了一些 Framework 4.0 中没有的功能。
例如CallerMemberName attribute in the BindableBase
class.
在 documentation 它提供了一条注释说
"Note: For .NET 4.0, Silverlight, or Windows Phone 7.x applications use Prism 4.1."
system requirements 中的 Prism 5.0 指南说
"WPF applications built using this guidance require the .NET Framework 4.5"
Prism 5.0 是否包含 Prism 4.x 包含的所有内容以及新内容?如果是这样,那么我可以只安装 Prism 5.0 但遵循 Prism 4.1 的指南吗?
或者他们是否重写了某些东西以依赖于 .NET 4.5?
不,您不能将 Prism 5.0 与 .NET 4.0 一起使用。
原因是 Prism 5.0 代码使用了一些 Framework 4.0 中没有的功能。
例如CallerMemberName attribute in the BindableBase
class.