cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp

Home Page:https://cakebuild.net/extensions/cake-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AccessViolationException when calling tag.Annotation.Message

achikhv opened this issue · comments

Hello!

I get AccessViolationException when trying to access tag's annotation properties. It seems, that #129 allows to load targets, but the issue occures when trying to access target's lazy-initialized properties.

Here is sample that will cause AVE when executed

#addin Cake.Git&version=3.0.0

var tags = GitTags("..", true);

foreach (var t in tags)
{
    if (t.IsAnnotated)
    {
        Information(t.Annotation.Message);
    }
}

Is there any way I can read annotation's properties?