Skip to content

Please update the format so it excludes this parameter when building in Release mode #506

Open
@vulovicv23

Description

Hey guys!

First of all, thank you for awesome work!

I am having trouble when building my .net core 7 app in Release mode, basically, I have this:

 [Time("Inserted {x}")]
    private async Task InsertGame(long? x, Game game)

When I debug it, it works like a charm, but, when I try to create a Release build, it throws this error:
Fody/MethodTimer: Parameter 'x' is not available on the async state machine. Probably it has been optimized away by the compiler. Please update the format so it excludes this parameter.

Tried googling but couldn't find anything on this.

Can you guys please advise what to do from here?

Thanks!

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