Skip to content

Compiling SkEditor

Notro edited this page Dec 28, 2024 · 2 revisions

Compiling SkEditor is Really Easy!

  1. Make sure you have the .NET SDK installed.

  2. Download and install Git.

  3. Clone the repository. For example, to clone the dev branch, use this command: git clone -b dev/dev https://github.com/SkEditorTeam/SkEditor.git

  4. Navigate to the cloned folder and enter the SkEditor directory: cd SkEditor/SkEditor

  5. Run the dotnet publish command. You can find more information about available command options here. Examples are provided below.

  6. You're done! The published files will be located in a folder like bin\Release\net8.0\win-x64\publish.

Example Publish Arguments

Simple, not self-contained (.NET Runtime required), optimized with R2R:

dotnet publish -c Release -r win-x64 --no-self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true

Self-contained (.NET Runtime not required), R2R, compression in single file, and unused dependencies trimmed:

dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:EnableCompressionInSingleFile=true -p:TrimUnusedDependencies=true