Open HopeKuypers opened 1 year ago
I just forked this and made changes to the files to support version 3.1.426 of the SDK for someone else. Seems to be a common issue here with this repo. You can get that SDK here. After you install that along with the dotnet-try tool, try my forked version try-samples to see if that helps.
Worked. Thanks!
I just forked this and made changes to the files to support version 3.1.426 of the SDK for someone else. Seems to be a common issue here with this repo. You can get that SDK here. After you install that along with the dotnet-try tool, try my forked version try-samples to see if that helps.
Still receiving the same error.
Worked. Thanks!
what did you do?
I met the similar thing in my Computer too, the issue is solved with below steps:
The enviornment:
OS: Win 11
.NET SDKs: .NET Core 3.0 SDK, .NET Core 3.1 SDK, .NET 6.0 SDK, .NET 8.0 SDK installed.
If you install it with the command "dotnet tool install -g dotnet-try", you need unistall it first with:
dotnet tool uninstall -g dotnet-try
If you install it with the command "dotnet tool install -g Microsoft.dotnet-try", you need unistall it first with:
dotnet tool uninstall -g Microsoft.dotnet-try
Then install the latest verion of "dotnet try" with below command:
dotnet tool install -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-try
In Windows, recommand to run above commands in "cmd" with admin permission.
You can run below command to check:
dotnet --list-sdks
If you did not install them, download from below links and install them.
https://dotnet.microsoft.com/en-us/download/dotnet/3.0 https://dotnet.microsoft.com/en-us/download/dotnet/3.1
Note: .NET core 3.1 SDK's version is "3.1.416" so far.
git clone https://github.com/dotnet/try-samples
The content is below:
{
"sdk": {
"version": "3.1.416"
}
}
Note: the version "3.1.416" here should be the same as in step 2.
cd try-samples/
dotnet try verify
If no exceptions happened, jump to next step below. Else try to remove references to the package 'System.CommandLine.Experimental' from all of the .csproj files.
dotnet try ".\101-linq-samples"
May it be helpful for you.
References:
https://github.com/dotnet/try/blob/main/DotNetTryLocal.md
https://github.com/dotnet/try/issues/938#issuecomment-1023604536
This anwer first publish in: https://stackoverflow.com/a/78534041/6075331
I've been trying to find a solution to the red rectangle network error console output when practicing c# on Microsoft learn interactive tutorial but can't seem to find the solution. Any help would be appreciated. Thanks.