编译现有源代码VB.NET VS 2008以在Android和iOS上运行 [英] Compile Existing Source Code VB.NET VS 2008 to run on Android and iOS

查看:201
本文介绍了编译现有源代码VB.NET VS 2008以在Android和iOS上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VB.NET Visual Studio 2008开发了一个应用程序,并且它已在使用Windows操作系统的PC上成功运行。


 


将同一个应用程序编译为在手机(特别是Android和iOS)上运行的最佳方法是什么? 也就是说,无需更改源代码。


 


谢谢。

解决方案

如果不改变几件事情是不可能的:


- 你需要使用Visual Studio 2015或Visual Studio 2017与Xamarin :


https://www.xamarin.com/visual-studio


- 您需要通过C#更改VB.NET,因为Xamarin不支持VB.NET:


https://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/portable_visual_basic_net/xamarin-forms /


- 您需要更改代码和UI,因为使用Windows Forms进行Windows编程与使用Xamarin Forms进行iOS或Android编程不同。


- 如果您的目标是Windows 10(而不是Windows 7),您可以使用通用Windows平台(UWP)与iOS和Android应用程序共享代码:


https://developer.xamarin.com/guides/cross-platform/windows/universal/


Have developed an app using VB.NET Visual Studio 2008 and it is running successfully on PC with Windows OS.

 

What is the best way to have the same app to be compiled to run on mobile phones, specifically Android and iOS?  That is, without changing the source code.

 

Thank you.

解决方案

It's impossible without changing several things:

- You need to use Visual Studio 2015 or Visual Studio 2017 with Xamarin:

https://www.xamarin.com/visual-studio

- You need to change VB.NET by C#, because Xamarin doesn't support VB.NET:

https://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/portable_visual_basic_net/xamarin-forms/

- You need to change the code and UI, because programming for Windows using Windows Forms is not the same than programming for iOS or Android using Xamarin Forms.

- If you are targeting Windows 10 (and not Windows 7), you can use Universal Windows Platform (UWP) to share code with the iOS and Android apps:

https://developer.xamarin.com/guides/cross-platform/windows/universal/


这篇关于编译现有源代码VB.NET VS 2008以在Android和iOS上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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