@aho , thank you very much for your help with #csharp and #VScode and #Ubunutu and #apt ...
Your time, as mine, on the clock, is the same. Being summer and you being more north and little more east, I guess, your daylight starts earlier. It is gray morning here. Raining. And I am enjoying a coffee.
Let us make a step back and consider what I am trying to do.
(I think we have discussed before the possibility of having our conversation hybrid: Finnish Czech. I may remember, you did not like the idea then.)
A student who is close to me and who uses Ubuntu is required to pass a test on a school computer: #Microsoft - #Windows - #VisualStudio - C# . I don't like what the school requires from them, but here we are.
So, I have been trying to create an enviroment on their (and in parallel on mine) computer to prepare for the test. After more than ten hours, no success. The student borrowed a Windows computer and prepares for the test on it. The situation is solved for the moment and is not fully solved for the future. The course continues.
I am heading to the conclusion that, in general, it is better to have access to a Windows computer for this and other tasks which somehow suppose that Windows is a standard, to use this computer for such dirty work, and not to try to make a Linux machine to do whatever Windows machine may be doing.
Any thoughts on this? @aho , or anybody?
Using the `extension` keyword in #csharp 14 is kind of awkward. It would be nicer to be able to use it as a top-level declaration without the wrapping static class.
Before you say, "where would they exist in that case?”, each namespace would have a catch-all static class that would hold these extension methods if there is no wrapping class. #dotnet already generates a `Program` type, this would be another one of those.
Hello again, old friend.
I'll be diving into C# tomorrow to try to help a developer parameterize their ad hoc query so it doesn't generate thousands of query execution plans.
The things I do to keep SQL Server humming along...
Asi za to mohlo dotnet.sh v /etc/profile.d :
# Add dotnet tools directory to PATH
DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
case "$PATH" in
*"$DOTNET_TOOLS_PATH"* ) true ;;
* ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
esac
# Extract self-contained executables under HOME
# to avoid multi-user issues from using the default '/var/tmp'.
[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"
Zatím jsem ho přejmenoval na fuj_dotnet_s_h a už je PATH hezčí:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
Ale asi jsem to dovil Majkrosoftu to tam dát. Ach, ach, já trubka. Myslím, že mám skončit a dát si přestávku.
$ dotnet --info
SADA .NET SDK:
Version: 8.0.119
Commit: ae38273ec4
Workload version: 8.0.100-manifests.b3962286
Běhové prostředí:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /var/snap/dotnet/common/dotnet/sdk/8.0.119/
Nainstalované úlohy .NET:
Workload version: 8.0.100-manifests.b3962286
Nejsou k dispozici žádné nainstalované úlohy, které by se daly zobrazit.
Host:
Version: 9.0.8
Architecture: x64
Commit: a1e39f97e5
.NET SDKs installed:
8.0.119 [/var/snap/dotnet/common/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.NETCore.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
Začnu tady:
https://learn.microsoft.com/cs-cz/dotnet/core/install/linux-scripted-manual#scripted-install
$ code --version
1.103.2
6f17636121051a53c88d3e605c491d22af2ba755
x64
$ dotnet --list-sdks
8.0.119 [/var/snap/dotnet/common/dotnet/sdk]
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.NETCore.App]
Hm... Tak znovu a pomalu... Jak že to mám nainstalovat? Co všechno mám nainstalovat?
Z jakého kanálu? Nějaké nápovědy:
https://code.visualstudio.com/docs/configure/settings#_settings-json-file
https://mycomputeradventures.foxinnovations.be/2016/10/24/ubuntu-c-sharp/
https://ossmalta.eu/how-to-install-visual-studio-code-in-ubuntu-22-04-24-04-3-ways/
$ dotnet --info
Looks like you don't yet have a .NET SDK or Runtime installed.
Downloading and installing the latest LTS SDK for you to use. It should only take a few moments.
[sudo] heslo pro něco:
dotnet-sdk-80 8.0.119+git.97f05b7 from Canonical✓ installed
aspnetcore-runtime-80 8.0.19+git.97f05b7 from Canonical✓ installed
dotnet-runtime-80 8.0.19+git.97f05b7 from Canonical✓ installed
SADA .NET SDK:
Version: 8.0.119
Commit: ae38273ec4
Workload version: 8.0.100-manifests.b3962286
Běhové prostředí:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /var/snap/dotnet/common/dotnet/sdk/8.0.119/
Nainstalované úlohy .NET:
Workload version: 8.0.100-manifests.b3962286
Nejsou k dispozici žádné nainstalované úlohy, které by se daly zobrazit.
Host:
Version: 9.0.8
Architecture: x64
Commit: a1e39f97e5
.NET SDKs installed:
8.0.119 [/var/snap/dotnet/common/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.19 [/var/snap/dotnet/common/dotnet/shared/Microsoft.NETCore.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