Avatar of Larry Brister
Larry Brister
Flag for United States of America asked on

C# Version in Visual STudio

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

Avatar of undefined
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

Larry Brister

ASKER
Guys,
 I have a web servise "Web Site"

It has a slm file

And no csproj file

It builds and runs fine

I just need to know how to get the csproj file
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Partha Mandayam

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
ASKER CERTIFIED SOLUTION
Partha Mandayam

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.