0

After creating a new Azure Function app running on .NET6 project in Visual Studio 2022, I'm getting errors (I I didn't change anything in the newly created project):

The type or namespace name 'actionresult' could not be found

My .csproj file:

csproj-file

I tried repairing visual studio 2022. I have the same issue if I create a function app in .NET5, .NET3. If someone also had this issue it would be great. Thank you.

4
  • Error messages are text and so are StackOverflow questions. You can edit your question and include the error details so that others are not inconvenienced while trying to help you. Commented Apr 11, 2022 at 22:25
  • Ok, i changed this Commented Apr 11, 2022 at 22:38
  • my guess is that 'actionresult' should be ActionResult Commented Apr 11, 2022 at 22:40
  • Sorry, I'm just tried to find this 6 hours and added this error maybe to roughly. Error CS0246 The type or namespace name 'IActionResult' could not be found (are you missing a using directive or an assembly reference?) FunctionApp. Commented Apr 11, 2022 at 22:51

1 Answer 1

-1

Ok I'm found the solution. Deleting all folders and files from:

C:\Users\User_name\.nuget\packages

solved the issue.

Sign up to request clarification or add additional context in comments.

1 Comment

No this did not fix it. The packages are re-downloaded and still missing the reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.