Skip to content

NullReferenceException in .NET 8 #179

@jmajoor

Description

@jmajoor

The detection of netcore was changed in #155 and this was released on nuget with version 2021.7.22.1.
Unfortunately this fix only works for .NET 5 and .NET 6.

#166 the detection was improved and should work for .NET 8 as well.

In my usage of Trill I get a null reference exception due to generated code (in TemplateClasses.cs) that can't be compiled. I get this exception when trying to run on NET 8, with NET 6 it is fine.

if, however, I use the latest code in this repo then it also works for NET 8. This is due to the fact that .NET 8 is not detected as a netcore environment in the latest released version.

Would it be possible to publish a new release?
Would it be possible to update 3rd party dependencies as well (too avoid vulnerabilities and compatibility issues)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions