SPI
SPI

Reputation: 93

Use Microsoft.AspNet.Mvc in Universal Windows Platform (UWP) Application

I am trying to use Microsoft.AspNet.Mvc in my Universal Windows Platform (UWP) Application, but can't add the nuGet packages.

The Error says:

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'

Does anyone know how I can use MVC in in a UWP Application? maybe any other libiry?

Upvotes: 1

Views: 2340

Answers (2)

Lloyd
Lloyd

Reputation: 29668

You're confusing the pattern MVC with the implementation of MVC for web pages/services on ASP.NET.

They're not the same. You can of course use the pattern MVC in UWP but not ASP.NET MVC. That makes no sense.

However for most desktop applications I think MVVM makes more sense, in which case you should use something like Prism.

Upvotes: 2

Peter B
Peter B

Reputation: 24136

ASP.Net.MVC runs on top of ASP.Net which runs on top of IIS (or other web servers) to host web pages.
Universal Windows Platform (UWP) is not IIS. It is a desktop platform for making desktop apps.

Upvotes: 2

Related Questions