C# 到 Java 转换器 – CodePorting.Translator Cs2Java 发布 25.4

发行说明

All Changes

  1. [Feature] Add the ability to move a type to another package.
  2. [Feature] Add the ability to rename files to custom names.
  3. [Feature] Add support for “Local Function” statement.
  4. [Enhancement] Keep file names for files without public types.
  5. [Bug] An unary expression from a parenthesized expression does not take into account unsigned arithmetic.
  6. [Bug] Private accessors to public properties are made public.
  7. [Bug] Missing comments on API change wrappers of property accessors.
  8. [Bug] Property comments disappear if the property has no modifiers.
  9. [Bug] A read-only auto-property assignment expression is translated to a setter, but should be translated to the auto-field assignment.
  10. [Bug] Trailing trivia disappear from enum members.

下载工件

CodePorting.Translator Cs2Java 25.4

包含CodePorting.Translator Cs2Java工具,该工具允许将现有的C#代码转换为Java 添加: 2025/4/8
下载 文件大小: 67Mb

关于 CodePorting.Translator Cs2Java

CodePorting.Translator Cs2Java 是一个转译器解决方案,可以帮助您自动将 C# 源代码转换为 Java,以便在不更改 API 或代码文档的情况下为两种语言发布相同版本的软件。 将C#项目转换为Java后,使用转换后的文件创建一个Maven项目。接下来,通过添加CodePorting.Translator Java Class Library (JCL)中的必要依赖项来配置您的Maven项目。

将CodePorting.Translator JCL添加到Maven项目

您可以通过简单的配置直接将JCL添加到您的Maven项目中。

1. 指定Maven存储库配置

首先,您需要在Maven pom.xml中指定CodePorting Maven存储库的配置/位置,如下所示: <repositories> <repository> <id>codeporting</id> <name>CodePorting Maven Repository</name> <url>https://products.codeporting.com/translator/csharp-to-java/repo/</url> </repository> </repositories>

2. 定义CodePorting.Translator JCL依赖项

然后,根据原始C#项目中使用的命名空间,在pom.xml中定义CodePorting.Translator JCL依赖项,如下所示: <dependencies> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>mscorlib</artifactId> <version>24.7.0</version> </dependency> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>System</artifactId> <version>24.7.0</version> </dependency> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>System.Security</artifactId> <version>24.7.0</version> </dependency> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>System.Xml</artifactId> <version>24.7.0</version> </dependency> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>System.Net</artifactId> <version>24.7.0</version> </dependency> <dependency> <groupId>com.aspose.ms.jdk.NetFramework</groupId> <artifactId>System.Drawing</artifactId> <version>24.7.0</version> </dependency> </dependencies>

其他发布

2025:
25.4
- 2025/4/8
25.3
- 2025/3/4
25.2
- 2025/2/5
2024:
24.10
- 2024/11/1
24.9
- 2024/9/18