mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

594
comptes actifs

#csharp

4 messages3 participants1 message aujourd’hui

@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.

Suite du fil

#csharp #VSCode #Ubuntu

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.

Suite du fil

#csharp #VSCode #Ubuntu

$ echo $PATH
/usr/lib/dotnet/dotnet:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/něco/.dotnet/tools

Kde se tam vzalo /home/něco/.dotnet/tools ?

Suite du fil

#csharp #VSCode #Ubuntu

user requested to download the .NET SDK.
Downloading .NET version(s) 8.0.119-global~x64 ........................................... Done!
.NET 8.0.119-global~x64 executable path: /usr/lib/dotnet/dotnet

#csharp #VSCode #Ubuntu

$ 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:
aka.ms/dotnet/info

Download .NET:
aka.ms/dotnet/download

aka.mscommande dotnet - .NET CLIDécouvrez la commande dotnet (pilote générique pour l’interface CLI .NET) et son utilisation.

#csharp #VSCode #Ubuntu

Hm. Nějak tam nesedí ta 9 a 8. A ty snap balíčky ve mně vzbuzují pochybnosti.

Failed to download .NET 9.0.8~x64~aspnetcore

Prázdná adresář:

~/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.8~x64~aspnetcore

#csharp #VSCode #Ubuntu

Začnu tady:

learn.microsoft.com/cs-cz/dotn

$ 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]

learn.microsoft.comInstalace .NET v Linuxu bez použití správce balíčků - .NETUkazuje, jak nainstalovat sadu .NET SDK a modul runtime .NET v Linuxu bez správce balíčků. Použijte instalační skript nebo ručně extrahujte binární soubory.

#csharp #VSCode #Ubuntu

$ 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:
aka.ms/dotnet/info

Download .NET:
aka.ms/dotnet/download

aka.mscommande dotnet - .NET CLIDécouvrez la commande dotnet (pilote générique pour l’interface CLI .NET) et son utilisation.