[core] Use a csproj reference, not dll reference, for raygun

Now it will build as expected