Giter Site home page Giter Site logo

aixiaofa / corehook.host Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unknownv2/corehook.host

0.0 2.0 0.0 3.09 MB

Library for hosting .NET Core in Linux, macOS, and Windows applications

License: MIT License

CMake 0.37% Batchfile 0.05% C++ 98.18% C 1.11% C# 0.28%

corehook.host's Introduction

CoreHook.Host

License Releases

A library for hosting .NET Core with CoreHook in an unmanaged application on Windows.

Build status

Build server Platform Build status
AppVeyor Windows Build status

Binary Releases

You download the pre-built Windows binaries here or you can build the binaries from source.

Usage

For x86, x64, extract the zip corresponding to your target architecture, then place the coreload32.dll or coreload64.dll in the build output directory of your program.

For ARM, ARM64, extract the zip corresponding to your target architecture, then place the coreload32.dll or coreload64.dll in the output directory of your published program, created either from using the Publishing Script or the dotnet publish command.

Building

Windows (x86, x64, ARM, ARM64)

Requirements

  • Visual Studio

Visual Studio

Building the DLL requires Visual Studio and there are two options: You can build the DLL by using the Visual Studio IDE or using msbuild within the Developer Command Prompt (the solution file is for Visual Studio 2017, for other versions see the CMake section).

You can choose a configuration (Debug|Release) and a platform (X86|X64|ARM|ARM64) and build.

An example for building the X64 coreload64.dll in the Release configuration:

msbuild build/msvc/coreload/coreload-dll.vcxproj /p:Configuration=Release /p:Platform=x64

To build the entire solution (which also builds the testing project), you can run:

nuget restore build/msvc/coreload.sln
msbuild build/msvc/coreload.sln /p:Configuration=Release /p:Platform=x64

The build output DLL will be inside the bin folder.

CMake

You can also build the library using CMake. You can run the build.cmd file to build for the x86 and x64 architectures using Visual Studio 2017. CMake also gives you the option to build with an older version of Visual Studio such as 2015 or 2013.

Tests

You can compile the .NET class Calculator.cs, which is required for the tests, with the command:

csc -target:library Calculator.cs

Credits

The coreload project is based on the core-setup host which supports parsing the .deps.json and runtimeconfig.json application configuration files. Most of the code for this library is borrowed from the corehost source.

References

corehook.host's People

Contributors

unknownv2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.