C
C#12mo ago
ShuajbM

how can i change the version from .net 7 to .net 8

how can i change the version from .net 7 to .net 8?
12 Replies
Bored Student
Bored Student12mo ago
you edit the number in your .csproj and pray it won't break much
Angius
Angius12mo ago
Change <TargetFramework>net7.0</TargetFramework> to <FrameworkVersion>net8.0</FrameworkVersion> And <LangVersion> from 11 to 12
jcotton42
jcotton4212mo ago
it's TargetFramework not FrameworkVersion @ZZZZZZZZZZZZZZZZZZZZZZZZZ but yeah just bump that number
Angius
Angius12mo ago
Whoops
reflectronic
reflectronic12mo ago
if you are using Visual Studio you can also just use the project properties page
ShuajbM
ShuajbMOP12mo ago
it doesnt show the dropdown for .net versions
reflectronic
reflectronic12mo ago
you don't see anything like this?
No description
nuthanm
nuthanm12mo ago
@shuajb; - if it is not showing then you have to Install the runtime and sdk manually and restart your visual studio.
jcotton42
jcotton4212mo ago
it also won't show in the GUI if the app is currently targeting Framework iirc
ShuajbM
ShuajbMOP12mo ago
nah im going to the solution then properties but this doesnt show up
Angius
Angius12mo ago
It's in the project properties, not solution
ShuajbM
ShuajbMOP12mo ago
solved thanks

Did you find this page helpful?