3

我想知道是否可以运行/转换/编译/重新编译一个小型 c# 程序,其任务是调用 web 服务并将通常的 xml 文件传递​​给 unix。HP ux 11.23(2003 年发布)的 unix 版本。

无论我在哪里寻找它,唯一合理的答案是“单声道”。然而,在搜索时我也遇到了这个:http ://www.mono-project.com/Mono:HPUX

目前只有 Mono Interpreter (mint) 可以在 HPUX 上工作。目前,Mono 的 JIT 不适用于 HPUX。

我想唯一让我尖叫的是我对这件事的无知。这会给我带来什么改变或阻止我编译和运行我的小程序?

顺便说一句,我使用的参考是:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;
using System.Net;

有没有什么办法可以让我自己摆脱“几个”瘀伤,而不是完全被毁坏并且每根骨头都断了?

4

2 回答 2

3

You can still use mono, however you are not able to use the JIT engine. This means that optimizations that run at the interpretation layer don't get run.

Mono has two modes of running JIT and interpreter runtime. The interpreter runtime is created on platforms before the JIT platform since its much much less complicated for the mono team, normally they move away from the interpreter runtime and switch to the JIT runtime, and as soon as that happens the interpreter runtime is no longer supported.

Also consider what you are doing, whilst you think it may be nice and simple, its actually quite a complex task, just looking at your using statements you are not only asking a program to interact with your network card (load drivers, create sockets, do host-name lookups, but are looking to work with anonymised advanced language features of c# 3.0. Theres a lot of backend work that needs to go on for this too work).

I'm sure the Mono team will support hpux eventually, you can get a list of the current supported platforms here

于 2012-07-04T09:40:49.567 回答
3

一个小型 c# 程序,用于调用 web 服务并将通常的 xml 文件传递​​给它,用于 unix

诚实地?用您的服务器支持的脚本语言编写一个简单的脚本。它会为您节省大量的血液、汗水和眼泪。

当然,如果您尝试过但它不起作用。如果是这样:只需使用 Mono。

于 2012-07-04T09:45:10.763 回答