Mono 的 VB.Net 支持是否已准备好用于生产站点?

Is Mono#39;s VB.Net support ready for a production site?(Mono 的 VB.Net 支持是否已准备好用于生产站点?)
本文介绍了Mono 的 VB.Net 支持是否已准备好用于生产站点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,我只使用以 Microsoft 为中心的解决方案,但对于即将到来的 ASP.Net 项目,我正在考虑使用 Mono 并将其托管在 Linux Amazon EC2 实例上.基于对我的 上一个问题,这听起来可行.但是,我对 VB.Net 最满意,我想知道 Mono 对它的支持程度如何.

Previously, I've only used Microsoft-centric solutions, but for an upcoming ASP.Net project I'm considering using Mono and hosting it on a Linux Amazon EC2 instance. Based on the responses to my previous question, this sounds doable. However, I'm most comfortable with VB.Net and I'm wondering how well Mono supports it.

是否有人有使用 VB.Net 为 Mono 编写 ASP.Net 应用程序的第一手经验?如果是这样,我想知道进展如何,您遇到了什么样的兼容性问题,以及您是否认为 Mono 的 VB.Net 支持已准备好在生产站点上使用?

Does anyone have first-hand experience writing ASP.Net applications for Mono using VB.Net? If so, I'd like to know how it went, what kind of compatibility issues you ran into, and if you consider Mono's VB.Net support ready for use on a production site?

我知道 Mono 的 C#.Net 支持非常好,所以这是我的后备计划,但我真的更喜欢使用 VB.Net.

I know Mono's C#.Net support is very good, so that's my fall-back plan, but I'd really prefer to use VB.Net.

推荐答案

VB 编译器并没有被放弃,只是时间不够,无法更新到较新的 VB 版本.

The VB compiler hasn't been abandoned, it's just a lack of time that is preventing the required work to update to newer VB versions.

目前 vbnc 支持 VB 8(又名 Visual Studio 2005),并带有一些较新 VB 版本的小功能.

Currently vbnc has support for VB 8 (aka Visual Studio 2005), with a few minor features from newer VB versions.

最简单和最安全的方法是在 Windows 上预编译您的网站,在这种情况下,您不必处理任何潜在的编译器问题(您可以使用最新的 Visual Studio 版本).如果您采用这条路线,则不会遇到任何使用 C# 不会遇到的错误 [1]

The easiest and safest would be to precompile your site on Windows, in which case you won't have to deal with any potential compiler issues (and you can use the most recent Visual Studio version). If you take this route you shouldn't run into any bugs you wouldn't hit using C# [1]

[1]:您会多引用一个程序集:Microsoft.VisualBasic.dll,它可能是错误的来源 - 但如果您遵守被认为是 VB 的良好编程实践(打开 Option Strict)您遇到任何重大新错误的可能性非常低.

[1]: You'd be referencing one assembly more: Microsoft.VisualBasic.dll, which could be a source of bugs - but if you adhere to what is considered good programming practice for VB (turn on Option Strict) the chances that you'll hit any significant new bugs is pretty low.

这篇关于Mono 的 VB.Net 支持是否已准备好用于生产站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)