在通用 Windows 平台 (UWP) 应用程序中使用 Microsoft.AspNet.Mvc
Use Microsoft.AspNet.Mvc in Universal Windows Platform (UWP) Application
我正在尝试在我的通用 Windows 平台 (UWP) 应用程序中使用 Microsoft.AspNet.Mvc,但无法添加 nuGet 包。
错误说:
Some packages are not compatible with UAP,Version=v10.0
(win10-x64-aot).
Package restore failed for 'Temp1.WinUniversal'.
Package restore failed. Rolling back package changes for
'Temp1.WinUniversal'
有谁知道如何在 UWP 应用程序中使用 MVC?也许还有其他的自由?
ASP.Net.MVC 在 ASP.Net 之上运行,后者在 IIS(或其他网络服务器)之上运行以托管网页。
通用 Windows 平台 (UWP) 不是 IIS。它是一个用于制作桌面应用程序的桌面平台。
您将模式 MVC 与 ASP.NET 上 pages/services 的 MVC for web pages/services 实现 混淆了.
它们不一样。您当然可以在 UWP 中使用 pattern MVC,但 not ASP.NET MVC。这毫无意义。
然而,对于大多数桌面应用程序,我认为 MVVM 更有意义,在这种情况下,您应该使用类似 Prism.
的东西
我正在尝试在我的通用 Windows 平台 (UWP) 应用程序中使用 Microsoft.AspNet.Mvc,但无法添加 nuGet 包。
错误说:
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
Package restore failed for 'Temp1.WinUniversal'.
Package restore failed. Rolling back package changes for 'Temp1.WinUniversal'
有谁知道如何在 UWP 应用程序中使用 MVC?也许还有其他的自由?
ASP.Net.MVC 在 ASP.Net 之上运行,后者在 IIS(或其他网络服务器)之上运行以托管网页。
通用 Windows 平台 (UWP) 不是 IIS。它是一个用于制作桌面应用程序的桌面平台。
您将模式 MVC 与 ASP.NET 上 pages/services 的 MVC for web pages/services 实现 混淆了.
它们不一样。您当然可以在 UWP 中使用 pattern MVC,但 not ASP.NET MVC。这毫无意义。
然而,对于大多数桌面应用程序,我认为 MVVM 更有意义,在这种情况下,您应该使用类似 Prism.
的东西