Visual Studio 2022: Missing Method References? Here's How to Fix It

Steven Jul 09, 2026

Are you facing issues with Visual Studio 2022 where method references aren't showing up as expected? You're not alone. This can be a frustrating problem, but it's often due to simple configuration issues. Let's dive into this issue and explore potential solutions.

the visual studio code is shown in this screenshote screen shot, with text below it
the visual studio code is shown in this screenshote screen shot, with text below it

Before we delve into troubleshooting, let's ensure we're on the same page. Method references in C# are a shorthand way of invoking methods, enabling more concise and readable code. When they're not showing up, it can hinder your development process.

Visual Studio Code setup—Part 1
Visual Studio Code setup—Part 1

Checking Your Project Settings

First, let's ensure your project is configured to support method references. This feature is available in C# 6.0 and later, so ensure you're using a compatible version.

Vitaly Friedman on LinkedIn: #ux #design
Vitaly Friedman on LinkedIn: #ux #design

To check, right-click on your project in Solution Explorer and select 'Properties'. In the 'Build' tab, under 'Target framework', ensure it's set to a version that supports method references, such as '.NET 5.0' or later.

Language Version

Visual Studio: Quick Way to Open Solution Explorer
Visual Studio: Quick Way to Open Solution Explorer

Next, let's ensure your language version is set correctly. Right-click on your project, select 'Properties', then 'Build'. Under 'Language version', ensure it's set to 'Latest (C# 9.0)' or later.

If it's set to an earlier version, change it to the latest supported version. This should enable method references in your project.

Using the 'nameof' Expression

Visual Studio IntelliSense Not Working? Multiple Ways for You! - MiniTool
Visual Studio IntelliSense Not Working? Multiple Ways for You! - MiniTool

If you're trying to use the 'nameof' expression to get the name of a method or property, ensure you're using it correctly. The syntax is 'nameof(Expression)', where 'Expression' is the method or property you want the name of.

For example, 'nameof(MyClass.MyMethod)' will get the string "MyMethod". If you're not seeing the method name, double-check your syntax and ensure the method exists and is accessible.

Resolving Method Reference Issues

How to Install Visual Studio Code on Windows Step by Step
How to Install Visual Studio Code on Windows Step by Step

If you've checked your project settings and language version, and you're still not seeing method references, there might be other issues at play.

First, try cleaning and rebuilding your solution. Sometimes, Visual Studio can get into a state where it's not properly updating your code. To do this, go to 'Build' > 'Clean Solution', then 'Build' > 'Rebuild Solution'.

7 Best Clip Studio Tips to Level Up Your Painting
7 Best Clip Studio Tips to Level Up Your Painting
Visual Studio 2022 for Mac is now available - Visual Studio Blog
Visual Studio 2022 for Mac is now available - Visual Studio Blog
Visual Basic Tutorial 2017
Visual Basic Tutorial 2017
Webhint Visual Studio Code extension
Webhint Visual Studio Code extension
a cartoon character with the words how to shade like this on it's screen
a cartoon character with the words how to shade like this on it's screen
an info sheet with the text enhance visual hierarchy, and two screens showing different
an info sheet with the text enhance visual hierarchy, and two screens showing different
Samouczek: tworzenie prostej aplikacji konsolowej w języku C# - Visual Studio (Windows)
Samouczek: tworzenie prostej aplikacji konsolowej w języku C# - Visual Studio (Windows)
How to Change Language in Visual Studio Easily
How to Change Language in Visual Studio Easily
2.0 Programación Visual de Sistemas Multi Proyectos con Visual Studio C#
2.0 Programación Visual de Sistemas Multi Proyectos con Visual Studio C#
Download Visual Studio 2013 Preview And .NET 4.5.1 Preview | Redmond Pie
Download Visual Studio 2013 Preview And .NET 4.5.1 Preview | Redmond Pie
How to Install Qt 5.x in Visual Studio IDE
How to Install Qt 5.x in Visual Studio IDE
Visual Studio 2019 Tricks and Techniques: A developer's guide to writing better code and maximizing productivity
Visual Studio 2019 Tricks and Techniques: A developer's guide to writing better code and maximizing productivity
How to Make an Android App Using Visual Studio
How to Make an Android App Using Visual Studio
Affinity Shortcuts – View Controls - Zeka Design
Affinity Shortcuts – View Controls - Zeka Design
the top 5 tools for ux design in 2020 infographical poster with icons
the top 5 tools for ux design in 2020 infographical poster with icons
Visual studio code – for writing XS – Age of Mythology Heaven
Visual studio code – for writing XS – Age of Mythology Heaven
Best AI Tools In 2026  For Graphic Designers
Best AI Tools In 2026 For Graphic Designers
a screen shot of a cell phone with the text, a beginner's guide to composition
a screen shot of a cell phone with the text, a beginner's guide to composition
Unable to automatically step into the server: Get the best fixes here
Unable to automatically step into the server: Get the best fixes here
the complete guide to creating and using an info sheet for your website or blog, with text
the complete guide to creating and using an info sheet for your website or blog, with text

Checking for Compiler Errors

Next, ensure there are no compiler errors in your project. Method references won't show up if there are errors preventing the code from compiling. Right-click on your project and select 'Properties'. In the 'Build' tab, ensure 'Treat warnings as errors' is not checked.

If it is, uncheck it, then clean and rebuild your solution. If there are still no compiler errors, try building the solution in 'Release' mode instead of 'Debug'.

Updating Visual Studio

If none of the above solutions work, it might be a bug in your version of Visual Studio. Try updating to the latest version. Go to 'Help' > 'Check for updates'. If there's an update available, install it and try again.

If you're still having issues, consider reporting the problem to Microsoft. They're usually quite responsive and can provide more specific assistance.

In the world of software development, issues like this are par for the course. The key is to stay calm, methodical, and persistent. With the right troubleshooting steps, you should be able to resolve this issue and get back to coding in no time.