Skip to content

sillsdev/SIL.BuildTasks

Repository files navigation

Readme

Several useful msbuild tasks.

NuGet version (SIL.BuildTasks) Build, Test and Pack

Current Tasks

Task Description
CreateChangelogEntry Given a Changelog file, this task will add an entry to the debian changelog.
CreateReleaseNotesHtml Given a markdown-style changelog file, this class will generate a release notes HTML file.
StampChangelogFileWithVersion Replaces the first line in a markdown-style Changelog/Release file with the version and date.
SetReleaseNotesProperty Given a markdown-style changelog file, this class will set a property to the changes mentioned in the topmost release.
Task Description
Archive
CpuArchitecture Return the CPU architecture of the current system.
DownloadFile Download a file from a web address.
FileUpdate
MakePot
MakeWixForDirTree
NormalizeLocales Drops country code from directories and filenames to help work with Crowdin
NUnit Run NUnit (v2) on a test assembly.
NUnit3 Run NUnit3 on a test assembly.
Split
StampAssemblies
UnixName Determine the Unix Name of the operating system executing the build.
UpdateBuildTypeFile

Build

Windows or Linux

Install .NET 6.0 SDK from https://dot.net/core-sdk-vscode .

Build and run tests:

dotnet pack --configuration Release SIL.ReleaseTasks.Dogfood/SIL.ReleaseTasks.Dogfood.csproj
dotnet test

Building a local package of SIL.BuildTasks for testing (Windows)

  1. Run the Pack build command from inside Visual Studio on the SIL.ReleaseTasks.Dogfood project
  2. Run the Pack build command from inside Visual Studio on the SIL.BuildTasks project
  3. Install the package from the output folder into your local Nuget source e.g.nuget.exe add output/Debug/SIL.BuildTasks.2.3.5-beta.1.nupkg -Source /c/Repositories/DevelopmentPackages/