Cake .NET Tool
When using Cake .NET Tool, addins referenced using the #addin
preprocessor directive can be pinned like this:
#addin nuget:?package=Cake.Foo&version=1.2.3
Cake Frosting
When using Cake Frosting, addins can be pinned like any other NuGet package.
<PackageReference Include="Cake.Foo" Version="1.2.3" />