C
C#16mo ago
Shuajb

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 Student16mo ago
you edit the number in your .csproj and pray it won't break much
Angius
Angius16mo ago
Change <TargetFramework>net7.0</TargetFramework> to <FrameworkVersion>net8.0</FrameworkVersion> And <LangVersion> from 11 to 12
jcotton42
jcotton4216mo ago
it's TargetFramework not FrameworkVersion @ZZZZZZZZZZZZZZZZZZZZZZZZZ but yeah just bump that number
Angius
Angius16mo ago
Whoops
reflectronic
reflectronic16mo ago
if you are using Visual Studio you can also just use the project properties page
Shuajb
ShuajbOP16mo ago
it doesnt show the dropdown for .net versions
reflectronic
reflectronic16mo ago
you don't see anything like this?
No description
nuthanm
nuthanm16mo ago
@shuajb; - if it is not showing then you have to Install the runtime and sdk manually and restart your visual studio.
jcotton42
jcotton4216mo ago
it also won't show in the GUI if the app is currently targeting Framework iirc
Shuajb
ShuajbOP15mo ago
nah im going to the solution then properties but this doesnt show up
Angius
Angius15mo ago
It's in the project properties, not solution
Shuajb
ShuajbOP15mo ago
solved thanks

Did you find this page helpful?