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