Hopw do I change the C# version in Visual Studio when there is a solution and a solution file but there is no project file?
ASP.NET.NET ProgrammingC#Microsoft Visual Studio
Last Comment
Partha Mandayam
8/22/2022 - Mon
it_saige
I think you mean .NET version. Solutions files don't contain any .NET version information, only project files do.
So you will need to add a project and set the appropriate .NET version on the project.
HTH,
-saige-
Partha Mandayam
Solution always comprises multiple related projects which make up an application Open the solution in Visual Studio Right click on the project and choose properties Go to the Application Tab and click Target Framework dropdown and choose the .net Framework version you want
There must be a csproj file in the same directory or a subfolder. Maybe it is hidden Tun on Windows explorer options to show hidden files and look for it If it is running fine, why do you want the csproj file?
Larry Brister
ASKER
Partha, WHat I found online is that to change c# version change the properties in the csproj file
So you will need to add a project and set the appropriate .NET version on the project.
HTH,
-saige-