Gapotchenko.Turbo.CocoR.Integration.MSBuild 2022.2.12

Prefix Reserved
dotnet add package Gapotchenko.Turbo.CocoR.Integration.MSBuild --version 2022.2.12                
NuGet\Install-Package Gapotchenko.Turbo.CocoR.Integration.MSBuild -Version 2022.2.12                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gapotchenko.Turbo.CocoR.Integration.MSBuild" Version="2022.2.12">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gapotchenko.Turbo.CocoR.Integration.MSBuild --version 2022.2.12                
#r "nuget: Gapotchenko.Turbo.CocoR.Integration.MSBuild, 2022.2.12"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Gapotchenko.Turbo.CocoR.Integration.MSBuild as a Cake Addin
#addin nuget:?package=Gapotchenko.Turbo.CocoR.Integration.MSBuild&version=2022.2.12

// Install Gapotchenko.Turbo.CocoR.Integration.MSBuild as a Cake Tool
#tool nuget:?package=Gapotchenko.Turbo.CocoR.Integration.MSBuild&version=2022.2.12                

Turbo Coco/R MSBuild Integration

Gapotchenko.Turbo.CocoR.Integration.MSBuild NuGet package allows you to integrate Turbo Coco/R at the MSBuild project level to improve the grammar development experience.

Getting Started

  1. Add Gapotchenko.Turbo.CocoR.Integration.MSBuild NuGet package to your MSBuild project
  2. Every attributed grammar file with .atg extension will be automatically processed by Turbo Coco/R during the build using the following rules:
    • If the .atg file is empty then it will be automatically filled with a starter grammar for your convenience
    • Frame files will be automatically created if they do not exist yet
    • The scanner and parser files will be generated automatically on every grammar modification

Project integration significantly reduces development time compared to the traditional approach with the manual usage of turbo-coco command-line tool.

Requirements

  • Turbo Coco/R requires .NET 7.0+ to run

  • The MSBuild project MUST be in a new SDK-style format. While that project format is mainly associated with newer target frameworks such as .NET Core and .NET, it is also perfectly usable for .NET Framework.

    (Tip: The new MSBuild project format is a good thing, and if you are not converted yet then you should strongly consider it. Tools like dotnet migrate-2019 may help you with that)

Please note that:

  • The produced source files are not subject to any requirements and can work anywhere
  • Gapotchenko.Turbo.CocoR.Integration.MSBuild NuGet package can be used in a project targeting not only .NET 7.0+ but any other framework without restrictions
  • Gapotchenko.Turbo.CocoR.Integration.MSBuild NuGet package does not rely on the installed turbo-coco command-line tool. Instead, the package comes with the tool bundled inside. This allows you to use the specific version of Turbo Coco/R just by selecting the corresponding version of Gapotchenko.Turbo.CocoR.Integration.MSBuild NuGet package in your project
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2022.2.12 322 12/14/2022