Sharpen alternatives and similar packages
Based on the "Interoperability" category.
Alternatively, view Sharpen alternatives based on common mentions on social networks and blogs.
9.7 9.4 L4 Sharpen VS CefSharp.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
8.6 9.3 L4 Sharpen VS pythonnetPython for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
8.3 8.2 L2 Sharpen VS CppSharpTools and libraries to glue C/C++ APIs to high-level languages
7.2 5.1 Sharpen VS pinvokeA library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
2.5 1.9 Sharpen VS LegacyWrapperLegacyWrapper uses a x86 wrapper to call legacy dlls from a 64 bit process (or vice versa).
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Sharpen or a related project?
Sharpen - Automated Java->C# coversion
Sharpen is a library and command-line tool for automating Java to C# code conversion. You can provide configuration classes to control a wide range of class and functionality mapping.
Sharpen doesn’t provide a compatibility runtime (i.e, an implementation of all java functionality on top of .NET), but it does provide some utility classes to meet the most common needs.
It’s likely that you will need to create a configuration class to customize and perfect your conversion, and you may need to apply patches to the result as well.
Sharpen was originally created by db40 svn source here in the format of an Eclipse plugin, but it has since been refactored to work from the command line and on build servers.
Building and testing sharpen itself
- Clone this repository
- Install Java 7 and maven. Java 6 and 8 and later aren’t supported.
- Run ‘mvn clean test’ to test
- Run ‘mvn install ’ to generate .jar files in /sharpen.core/target
mvn installshould have created a file named
sharpencore-0.0.1-SNAPSHOT-jar-with-dependencies.jar. This is a self-contained copy of sharpen that can be run anywhere.
java -jar sharpencore-0.0.1-SNAPSHOT-jar-with-dependencies.jar SOURCEPATH -cp JAR_DEPENDENCY_A JAR_DEPENDENCY_B
Each dependecy needed by the java source should be specified as a full path to the jar file. SOURCEPATH should also be a full path.
- Run -help for syntax
Sharpen allows for configuration through code
Sharpen’s command-line options don’t let you fully override all conversion options and behaviour. For example if you need to change mapping of primitive types or allow/deny mapping between iterators and enumerators, ...
Creating external config class
Your external configuration class must:
- inherit [Configuration](sharpen.core/src/sharpen/core/Configuration.java) class;
- must be publicly visible;
- must have a public constructor;
An example configuration project can be found here https://github.com/ydanila/sharpen_imazen_config.
Using your custom config class
Name your jar file
<configuration class name>.sharpenconfig.jar in the sharpen directory. Then specify the full configuration name via the command line parameter
-configurationClass (or via the options file).
java -jar sharpen-jar-with-dependencies.jar C:/java_src/ -configurationClass sharpen.config.MEConfiguration @sharpen-all-options-without-configuration
java -jar sharpen-jar-with-dependencies.jar C:/java_src/ @sharpen-all-options