C
C#10mo 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 Student10mo ago
you edit the number in your .csproj and pray it won't break much
Angius
Angius10mo ago
Change <TargetFramework>net7.0</TargetFramework> to <FrameworkVersion>net8.0</FrameworkVersion> And <LangVersion> from 11 to 12
jcotton42
jcotton4210mo ago
it's TargetFramework not FrameworkVersion @ZZZZZZZZZZZZZZZZZZZZZZZZZ but yeah just bump that number
Angius
Angius10mo ago
Whoops
reflectronic
reflectronic10mo ago
if you are using Visual Studio you can also just use the project properties page
ShuajbM
ShuajbM10mo ago
it doesnt show the dropdown for .net versions
reflectronic
reflectronic10mo ago
you don't see anything like this?
No description
nuthanm
nuthanm10mo ago
@shuajb; - if it is not showing then you have to Install the runtime and sdk manually and restart your visual studio.
jcotton42
jcotton4210mo ago
it also won't show in the GUI if the app is currently targeting Framework iirc
ShuajbM
ShuajbM10mo ago
nah im going to the solution then properties but this doesnt show up
Angius
Angius10mo ago
It's in the project properties, not solution
ShuajbM
ShuajbM10mo ago
solved thanks
Want results from more Discord servers?
Add your server