是否可以将ASP.NET MVC3应用程序部署到NetDuino或.NetGadgeteer?如果是这样,我怎么样?

我想要做的是有一个连接到WiFi路由器的NetDuino,它将托管MVC Web应用程序。

有帮助吗?

解决方案

否,它将不支持它。为了运行ASP.NET,您需要有某种IIS运行。在.NET Micro Framework上的HTTM上提供HTML非常简单,但为了使用ASP,您需要完整的IIS服务器或某种嵌入式ASP服务器,如Visual Studio(Cassini是代码名称,我认为)。

你基本上4个选择:

  • 找到嵌入式ASP服务器。有一个.NET项目名为 aspnetegetserve 可以服务于ASP页面,您可能能够端口是微框架。
  • 踏上Windows CE,它可以承载ASP .NET页面。
  • 在现场提供普通的HTML页面。
  • 如果需要,使用ASP和将其移植到.NET MF的模板引擎

其他提示

Both Gadgeteer and Netduino run the .Net Micro Framework which will not support an ASP.NET MVC web application.

People have implemented simple web servers inside Netduino.

Do you really need to host the MVC website on your Netduino or do you have a computer/device available to host the website and simply have your controllers communicate directly with the Netduino?

There's a great article on doing exactly this at http://www.codeproject.com/Articles/344471/Using-jQuery-Mobile-with-MVC-and-Netduino-for-Home

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top