How to upgrade netcore.app v3.1.0 to latest version?

longevity uyl 285 Reputation points
2023-12-14T05:23:04.59+00:00

I cloned c# sample project from GitHub. But its netcore.app v3.1.0 is too old. How to upgrade netcore.app to latest version?

D:\workspace_VS\DLL\SocketServer\src\SocketServer.Impl\bin\Debug\netcoreapp3.1>server.exe
You must install or update .NET to run this application.

App: D:\workspace_VS\DLL\SocketServer\src\SocketServer.Impl\bin\Debug\netcoreapp3.1\server.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '3.1.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  6.0.25 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  7.0.14 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  8.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=win-x64&os=win10
Developer technologies | Visual Studio | Other
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-12-14T08:23:33.5233333+00:00

    Hi @longevity uyl

    Welcome to Microsoft Q&A!

    You can install the .NET Upgrade Assistant to upgrade the project from .NET Core 3.1 to .NET.

    (Please backup your project before migration.)  

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.