Vai al contenuto principale
ProdottiStrumenti desktopTASTECADVisualizzazione disegniTASTEFILESGestione fileTASTEFTPTrasferimento fileTASTESSHSpazio di lavoro remotoTASTEZIPCompressione ed estrazioneStrumenti per sviluppatoriTASTECODEAmbiente di sviluppo integrato per RustTASTESTUDIOAmbiente integrato di sviluppo e testTASTEETLIntegrazione dati (ETL)ServerTASTEREMOTEServer di desktop remotoTASTEGEOServer geospazialeTASTEMAILSpazio di lavoro emailIniziaDownloadDocumentazioneAcquistaTutti i prodotti
Marketplace
Notizie
TecnologiaNotizieNotizie di sviluppo di oggiDocumentazioneLinguaggi di programmazioneRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFramework frontend webNext.jsReactVue.js · NuxtSvelteKitAngularFramework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFramework per app e desktopTauriFlutterReact NativeElectronAlgoritmiBasi degli algoritmiAlgoritmi fondamentaliAlgoritmi avanzatiAlgoritmi pratici
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrinaGuida alla community
CollaboraTrasferimento tecnicoRealizzazione del sito webRealizzazione di app desktopPipeline di rilascio e pagamentoPartner commercialeContatti
ServiziDesktop remotoPacchetti di installazione su misura
TASTEDEV
Prodotti

Strumenti desktop

TASTECADApri con leggerezza anche i disegni più complessiTASTEFILESSolo i file che servono, alla massima velocitàTASTEFTPLa via più ordinata per i tuoi fileTASTESSHUn legame più solido tra te e i tuoi serverTASTEZIPComprimi più veloce, estrai più sicuro

Strumenti per sviluppatori

TASTECODEModifica, compila, esegui il debug e testa app Rust in un'unica finestraTASTESTUDIODalla modifica ai test remoti e alle correzioni IA approvateTASTEETLSposta i dati guardando i valori

Server

TASTEREMOTEUn desktop remoto che gira sul tuo serverTASTEGEOUn server geospaziale compatibile con GeoServer, ricostruito in RustTASTEMAILRiprendi il controllo della tua posta

Inizia

DownloadUltime versioni di ogni prodottoDocsCome usare ogni prodottoAcquistaAbbonamenti e licenze perpetueTutti i prodottiTutti i prodotti a colpo d’occhio
Tutti i prodotti
MarketplaceNotizie
Tecnologia

Notizie

Notizie di sviluppo di oggiAnnunci ufficiali su linguaggi, framework, GitHub e IADocumentazioneGuide a linguaggi, framework e algoritmi

Linguaggi di programmazione

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Framework

Framework frontend webNext.jsReactVue.js · NuxtSvelteKitAngular
Framework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Framework per app e desktopTauriFlutterReact NativeElectron

Algoritmi

Basi degli algoritmiAnalisi della complessità · Ordinamento · Ricerca · Strutture dati di base · Alberi e heapAlgoritmi fondamentaliVisita dei grafi · Cammini minimi e alberi ricoprenti · Programmazione dinamica · Algoritmi greedy · Divide et impera · BacktrackingAlgoritmi avanzatiAlgoritmi sulle stringhe · Matematica e teoria dei numeri · Manipolazione dei bit · Alberi di segmenti · Union-FindAlgoritmi praticiStrategia per colloqui di programmazione · Cache LRU · Rate limiting · Hashing consistente
Tutta la documentazione di sviluppo
Community
ProgettiScopri sviluppatori e lavoriLog di sviluppoDecisioni e lezioni appresePromptIstruzioni riutilizzabiliProblemi degli strumenti di IAProblemi e alternative di Claude, Codex, GeminiVetrinaRisultati completatiGuida alla communityCome sviluppiamo in modo aperto
Collabora
Trasferimento tecnicoApp native in Rust ed eguiRealizzazione del sito web10 lingue, account, documentazione e downloadRealizzazione di app desktopRust ed egui, senza WebViewPipeline di rilascio e pagamentoFirma, MSI, deb, rpm, AppImage, hashPartner commercialeConsigliaci e ricevi il 30%ContattiSviluppo, partnership e investimenti
Servizi
Desktop remotoRaggiungi il tuo computer dal browserPacchetti di installazione su misuraSolo il necessario, impostazioni precaricate
Acquista
IT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Accedi
Accedi
TASTEDEV

Dai piccoli strumenti a uno sviluppo migliore.

support@tastedev.netSostieni TASTEDEV
ProdottiGamma di prodottiAcquistaDocsDownloadMarketplaceAssistenza
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrina
NormeInformativa sulla privacyTermini di servizioCondizioni di abbonamentoRimborsiLinee guida della community
AccountAccediRegistrati
Visitatori
Oggi
012345678901234567890123456789012345678901234567890123456789
Ieri
012345678901234567890123456789012345678901234567890123456789
Visualizzazioni totali
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Società
GXSOFT
Rappresentante
CHOI YOUNG GU
Numero di registrazione
853-44-00368
Indirizzo
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefono
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsabile privacy
CHOI YOUNG GU

© 2026 TASTEDEVLe informazioni sui prodotti si basano su fonti di sviluppo verificate.Rilasciato · in miglioramento

Documentazione di C#
C#
Getting Started with CSyntax BasicsTypes and DataProjects and PackagesErrors and TestingKey Concepts: LINQ, Delegates, and Async
Discussioni

Guida a C# · 1/6

Getting Started with C

Per ora questo capitolo è disponibile solo in inglese.

C# is a statically typed, object-oriented language from Microsoft that runs on .NET, an open-source, cross-platform runtime. The same language and toolchain cover command-line tools, web APIs, desktop apps, Unity games, and cloud services. In this chapter you will install the .NET SDK, create and run a first project, look inside the project file, and set up an editor.

Installing the .NET SDK

To build C# code you need the .NET SDK. It bundles the compiler, the dotnet command-line tool, the base class libraries, and the runtime. Machines that only run apps can get by with the runtime alone, but your development machine needs the full SDK.

  • Download installers for Windows, macOS, and Linux from the .NET download page. Unless you have a reason not to, pick the current long-term support (LTS) release.
  • Package managers work too: winget on Windows, Homebrew on macOS, and your distribution's package manager or Microsoft's package feed on Linux.
  • Installing Visual Studio with the .NET development workload also installs the SDK.

Open a fresh terminal afterwards and check the installation:

dotnet --version
dotnet --list-sdks
dotnet --info

dotnet --version prints the SDK currently in use, and dotnet --list-sdks shows every installed SDK. Multiple SDKs can live side by side; each project declares which framework version it targets.

Your First Project

dotnet new scaffolds projects from templates. The console app template is called console:

dotnet new console -o HelloApp
cd HelloApp
dotnet run

The -o HelloApp option creates a HelloApp folder and puts the project inside it. You get two files, HelloApp.csproj and Program.cs, and dotnet run prints Hello, World!. The whole program is a single line:

// Program.cs
Console.WriteLine("Hello, World!");

There is no class and no Main method because of top-level statements: the compiler generates the entry point around the statements in this file for you. Command-line arguments arrive in a predefined args variable:

if (args.Length == 0)
{
    Console.WriteLine("Usage: dotnet run -- <name>");
    return;
}

var name = args[0];
Console.WriteLine($"Hello, {name}! Today is {DateTime.Now:yyyy-MM-dd}.");

Run it with dotnet run -- Alice. Everything after -- is passed to your program; options before it belong to dotnet run itself.

Domande su questo capitolo?
Capitolo successivoSyntax Basics

The Project File (.csproj)

The .csproj file is an MSBuild XML document describing what to build and how. The template generates something like this:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>
SettingWhat it does
Sdk="Microsoft.NET.Sdk"Uses the standard build rules for .NET projects. Web projects use Microsoft.NET.Sdk.Web.
OutputTypeExe produces an executable; leave it out to build a class library (.dll).
TargetFrameworkThe .NET version you target. The template fills in a value that matches your SDK.
ImplicitUsingsAutomatically imports common namespaces such as System, System.IO, and System.Linq.
NullableTurns on nullable reference type analysis (covered in chapter 3).

SDK-style projects include every .cs file under the project folder automatically, so adding a new source file never requires editing the project file.

Building and Running

These are the commands you will use most often:

dotnet build                 # build the Debug configuration
dotnet build -c Release      # build the Release configuration
dotnet run                   # build, then run
dotnet watch                 # rebuild and rerun whenever files change
dotnet clean                 # remove build outputs

Compiled output lands in bin/Debug/<target framework>/, and intermediate files go to obj/. Both folders can be regenerated at any time, so keep them out of source control. Running dotnet new gitignore drops a .NET-flavored .gitignore into the current folder.

Setting Up an Editor

C# has excellent tooling. Any of the following gives you completion, refactoring, and debugging out of the box:

  • Visual Studio: a full IDE for Windows with the richest debugger and profiler.
  • Visual Studio Code: a lightweight editor; add the C# Dev Kit extension for a solution explorer, test explorer, and debugger.
  • JetBrains Rider: a cross-platform IDE that behaves the same on Windows, macOS, and Linux.

Whatever you choose, dotnet format keeps code style consistent. Commit an .editorconfig at the repository root so indentation, naming rules, and warning levels are shared by the whole team.

Summary

  • C# development requires the .NET SDK; verify it with dotnet --version.
  • Create a project with dotnet new console and run it with dotnet run.
  • Top-level statements in Program.cs form the entry point, and arguments come in through args.
  • The .csproj file is an MSBuild document that sets the target framework, output type, and compiler options.
  • Pick Visual Studio, VS Code with C# Dev Kit, or Rider, and use dotnet format to keep style consistent.

0 commenti

Commenti principaliPrima i più recenti

Accedi · Accedi per lasciare un commento.