How to check the C# version and .net framework being used in their Visual Studio projects?

Nuthan Murarysetty
2 min readJun 7, 2023
How to check the C# version and .net framework being used in their Visual Studio projects?
Created this blog header using Canva Team

Have you ever thought about the .net framework and C# language versions we are using in our projects through the visual studio?

Before starting the project it's important to know these details. This way we leverage the features in our project. Please follow the steps

First thing, we should learn how to check the .net framework version,

  1. Open Visual Studio and load your project.
  2. In the Solution Explorer, locate your project (it will have a .csproj extension).
  3. Right-click on the project and select “Properties” from the context menu. This will open the project properties window.
  4. In the project properties window, navigate to the “Application” or “Application” tab.
  5. Look for the “Target framework” or “Target framework (all configurations)” dropdown or textbox.
  6. The selected framework in this dropdown indicates the .NET framework version being used in your project. Note down the version for future reference.
  7. Another way is to right-click on the project and click on the “Edit Project file” option from the context menu then this will open a window where you can find framework information inside this tag (<TargetFramework>).

Now, to check the C# version,

  1. Repeat 1–3 steps from the above one.
  2. Go to the “Build” or “Build” tab (usually located on the left side of the project properties window).
  3. In the “Build” tab, click on the “Advanced” or “Advanced Build Settings” button. This will open the advanced build settings window.
  4. In the “Advanced Build Settings” window, locate the “Language version” or “C# language version” dropdown or textbox.
  5. The selected option in this dropdown indicates the C# version being used in your project. Note down the version for your article.

By following these steps, developers/any technical person can easily check both the C# version and framework being used in their Visual Studio projects. This information is crucial for understanding language features and ensuring compatibility with the targeted .NET framework.

Hope you gained some knowledge from this article. For more articles please Visit here.

Working on a few more articles if you don’t want to miss any of these. Please do follow me, you will be notified whenever I publish here.

Happy learning :)

--

--

Nuthan Murarysetty

I love sharing things what I know to others and passionate in photography.