[[:improve]]
Plattformunabhängige, projektorientierte Programmiersprache von Microsoft. Wie [[csharp|C#]] ohne UI zeug. [[powershell|Powershell]] versteht .NET.
.Net App erstellen
dotnet new [console|wpf|library] -o MyApp -f net8.0
cd MyApp
dotnet add package System.Management --version 8.0.0
dotnet run [parameters]
dotnet publish -c Release -r win-x86 /p:SelfContained=true /p:PublishSingleFile=true -f net8.0
Paketquellen installieren
dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "nuget.org"
/p:PublishSingleFile=true
/p:SelfContained=true // inklusive der .NET Runtime, kann auf dem Zielsystem ohne installierte .NET Runtime laufen
/p:PublishTrimmed=true // kann bei Reflection/dynamischem Laden Probleme machen
/p:EnableCompressionInSingleFile=true