Skip to content

Building from Source

James Mr. Squirrely edited this page Nov 17, 2026 · 2 revisions

Building from Source

WritingIDE is C# and WPF on .NET 10, for Windows 10 and 11.

Build and run

Install the .NET 10 SDK, then:

git clone https://github.com/MrSquirrely/WritingIDE.git
cd WritingIDE
dotnet run --project src/WritingIDE

Pass a project to open it straight away: WritingIDE.exe path\to\MyNovel.novproj.

Test

dotnet test

Layout

src/WritingIDE.Core     Model, persistence, import, grammar engine, analysis, exporters, AI clients,
                        the plugin list and installer. No UI
src/WritingIDE.Sdk      The plugin SDK: IWritingIdePlugin, IPluginHost, IProjectApi
src/WritingIDE          The WPF app: editor, tool windows, dialogs, Harper, the plugin loader, the local API
samples/                SampleExtension: a complete plugin
tests/                  xUnit tests for Core
.github/                The workflow and script that build the plugin index from the discussions

Add a grammar rule

Derive from GrammarRule (or PatternRule for a table of phrases) in src/WritingIDE.Core/Grammar/Rules and add it to GrammarEngine.Rules. Give it the next free ID in its group (NW1xxx spelling and grammar, NW2xxx punctuation, NW3xxx style, NW4xxx continuity) and a test.

A rule that only some writers want belongs in a plugin instead: see Creating a Plugin.

Installers

.\build\release.ps1 -Version 1.0.0 -UpdateUrl https://github.com/<owner>/<releases-repo>

This publishes self-contained builds for x64 and ARM64 and packs them with Velopack into installers, portable zips and update packages in artifacts\releases. The README has the details, including signing.

License

WritingIDE is under the GNU General Public License, version 3 or (at your option) any later version. The plugin SDK (src/WritingIDE.Sdk) is under the MIT License, and a plugin exception lets plugins use any license. Contributions are accepted under the same terms.

Clone this wiki locally