This repo provides a barebones template for creating multi-platform applications running on CoreCLR. It links in a small set of build targets which set up a very basic build environment from https://github.com/mellinoe/corebuild.
#Requirements
- Visual Studio 2015 Update 3
- .NET CLI or NuGet.exe (for restoring NuGet packages)
First, clone the repo recursively (git clone --recursive https://github.com/mellinoe/coretemplate <path>
)
Building in VS is easier and more user-friendly, but not necessary.
- Open src/SampleExe/SampleExe.csproj
- Select your configuration (Windows, Ubuntu, OSX)
- Build
- Optionally, set a break point and debug the program
- run
dotnet restore
to restore the packages for the solution - run
msbuild /p:Configuration=Windows_Debug
(or another configuration, depending on your target OS)
- The intermediate objects from the build will be placed in
<root>/bin/obj/<arch>/<platform>_<config>/
- The binaries will be placed in
<root>/bin/<arch>/<platform>_<config>/
- Executable projects' bin/ directories will include a full runtime and all library dependencies, ready to be copied to the target platform and run. If you are building on Windows, you can immediately run the .exe file and launch your program on CoreCLR.