✅ which .net version should I be starting with?

i downloaded the latest version from the dotnet website, 9.0, and attempted to use this -> https://github.com/gui-cs/Terminal.Gui to build out a simple console app with a TUI, but I got an error saying that i need to be on .net 6, which is marked as end-of-support. is it fine to stick with 9.0, or should I roll back to 8.0? its not terribly important that I be able to use Terminal.Gui, I just don't want to be locked out of using other libraries because the version of .net i'm using is too new.
GitHub
GitHub - gui-cs/Terminal.Gui: Cross Platform Terminal UI toolkit fo...
Cross Platform Terminal UI toolkit for .NET. Contribute to gui-cs/Terminal.Gui development by creating an account on GitHub.
18 Replies
ero
ero2w ago
where are you seeing that error? the library is supported on .net 9 just fine
enrico11011
enrico11011OP2w ago
so i've followed the instructions on the github and when I try to dotnet run it gives me this
No description
wasabi
wasabi2w ago
That sounds like YOU built a .NET 6 app.
enrico11011
enrico11011OP2w ago
what? i don't see how I could've done that, unless i was supposed to pass some argument into new so I got the demo to run by doing dotnet run --roll-forward LatestMajor i'm more interested in seeing if I did something wrong in the setup dotnet --version shows 9.0.202
jcotton42
jcotton422w ago
@enrico11011 share your csproj and the output of dotnet --info.
enrico11011
enrico11011OP2w ago
csproj -
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Terminal.Gui" Version="1.*" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Terminal.Gui" Version="1.*" />
</ItemGroup>

</Project>
dotnet --info -
.NET SDK:
Version: 9.0.202
Commit: 3a53853c30
Workload version: 9.0.200-manifests.21502d11
MSBuild version: 17.13.13+1c2026462

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.202\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.3
Architecture: x64
Commit: 831d23e561

.NET SDKs installed:
9.0.202 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
.NET SDK:
Version: 9.0.202
Commit: 3a53853c30
Workload version: 9.0.200-manifests.21502d11
MSBuild version: 17.13.13+1c2026462

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.202\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.3
Architecture: x64
Commit: 831d23e561

.NET SDKs installed:
9.0.202 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
Anton
Anton2w ago
No description
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
enrico11011
enrico11011OP2w ago
yeah that seems to have done it. i'm guessing its a bug that the original command puts out 6.0 as opposed to 9.0? or is this sort of thing normal in the C# world?
canton7
canton72w ago
What was the "original command" you refer to?
ero
ero2w ago
dotnet new tui
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
canton7
canton72w ago
Yeah, the readme says that V2 is in alpha but you can use it if you want, while V1 is stable and receiving maintenance updates
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
enrico11011
enrico11011OP2w ago
its working now, thanks for the help all. do i need to mark this as closed or something?
jcotton42
jcotton422w ago
@enrico11011 $close
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?