适用于Android的Mono-开发和测试方案 [英] Mono for Android - Develop and Test Scenario

查看:71
本文介绍了适用于Android的Mono-开发和测试方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个用于Android的Mono应用程序,正在Visual Studio上工作.
我们称之为MonoApp

此应用程序向asp.net MVC3应用程序发出HttpWebRequest,该应用程序返回JSON结果(一种RESTful体系结构).

我面临的问题是
1.我的MVC3应用程序已部署(正在运行)
2.我的MonoApp正在运行

在开发过程中,我需要在我的MVC3 App中修改代码/内容,并部署更改.然后,我可能必须在MonoApp中进行相应的更改并测试这些更改.

我的问题是..你们如何同时做这两个呢?
1.当MVC3运行时,您将获得内置的ASP.NET Web服务器,但是当您关闭该应用程序后,它便消失了,并且您松开了运行服务器的http://localhost:SomePortNumber.

目前,我坚持对MVC3应用进行更改,将Internet部署(发布)到我的域(这是我不想要的),然后在模拟器中测试我的MonoApp更改(现在必须实际转到INTERNET,而不是污染在本地网络服务器上运行的应用).

我知道一种方案是将MVC3应用程序部署到本地IIS,但是可以解决此问题吗?因为我还没有尝试过这种方法.

如果有人有任何想法,请多加赞赏.

谢谢.

Hi,

I have a Mono for Android app, working on visual studio.
Lets call this MonoApp

This app, makes an HttpWebRequest to an asp.net MVC3 application which returns a JSON result, A RESTful architecture.

The issue i''m facing is
1. My MVC3 application is deployed (is working)
2. my MonoApp is working

During the course of development, i would need to modify code/content in my MVC3 App, and deploy changes. And then, i might have to make corresponding changes in MonoApp and test the changes.

My question is.. how do you do both concurrently?
1. When MVC3 is running, you get the Builtin ASP.NET webserver, but when you close the applicaion, it goes away, and you loose http://localhost:SomePortNumber which the server was running on.

Currently, i''m stuck with making changes to MVC3 app, deploying (publishing) to internet into my domain (which is somehting i dont want) and then test my MonoApp changes in simulator (which now has to actually go to the INTERNET, instead of contacing app running on local webserver).

I know that one scenario is deploying your MVC3 app to local IIS, but is there a work around to this? as i haven''t tried this approach.

If anyone has any ideas, really appreciated.

Thanks.

推荐答案

您可以在Visual Studio中调试时固定端口号,以使其不会更改,请参见:http://msdn.microsoft.com/en-us/library/ms178109.aspx [
You can fix the port number when debugging in Visual Studio so it doesn''t change, see here : http://msdn.microsoft.com/en-us/library/ms178109.aspx[^]


这篇关于适用于Android的Mono-开发和测试方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆