Skip to content

MSBuild targets and props for building ghūl projects

License

Notifications You must be signed in to change notification settings

degory/ghul-targets

Repository files navigation

ghul-targets

CI/CD NuGet version (ghul.targets) Release Release Date Issues License ghūl

This package provides MSBuild targets needed to build ghūl language projects. The targets work with the standard .NET SDK targets by overriding the CoreCompile target to call the ghūl compiler

This is a minimal example .ghulproj (ghūl project file) using the targets from this package:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>    
    <GhulCompiler>dotnet ghul-compiler</GhulCompiler>
    <GhulSources Include="**/*.ghul" /> <!-- build all files with a .ghul extension: -->
    
    <PackageReference Include="ghul.runtime" Version="1.1.1" /> <!-- ghūl runtime library -->
    <PackageReference Include="ghul.pipes" Version="1.1.1" /> <!-- ghūl pipes provides the pipe operator, filter, map reduce etc. -->
    <PackageReference Include="ghul.targets" Version="1.2.3" /> <!-- this package provides ghūl MSBuild targets: -->
  </ItemGroup>
</Project>