Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToResultAction() not showing as an option for a variable of type Result #76

Closed
ghost opened this issue Nov 18, 2021 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented Nov 18, 2021

For some reason, I am unable to use ToActionResult() on a Result type in a controller class that inherits from ControllerBase. It's not an option in Intellisense.

But it's available on the controller instance if I use this syntax: this.ToActionResult(test).
I am referencing Ardalis.Result.AspNetCore in the file.

What am I missing?

result

@ffMathy
Copy link

ffMathy commented Nov 28, 2021

This happens for me as well. Using dotnet 6.

@ardalis
Copy link
Owner

ardalis commented Feb 9, 2022

This works in the sample app with latest code:
image

It's net6.0.

@ardalis ardalis closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants