You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Hi,
I had the same problem.
I figure out I was because I was not using in my code the 'x' parameter
I think optimizer remove it due to not usefull parameter
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:
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!
The text was updated successfully, but these errors were encountered: