{"id":25556938,"url":"https://github.com/kevin-doolaeghe/initiation-dotnet","last_synced_at":"2026-02-23T22:30:17.080Z","repository":{"id":181214593,"uuid":"382073607","full_name":"kevin-doolaeghe/initiation-dotnet","owner":"kevin-doolaeghe","description":"Initiation à l'environnement C#/.NET","archived":false,"fork":false,"pushed_at":"2021-07-01T15:38:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-14T14:27:35.571Z","etag":null,"topics":["documentation","dotnet","learning-by-doing"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevin-doolaeghe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-01T15:13:12.000Z","updated_at":"2023-07-14T14:27:38.292Z","dependencies_parsed_at":null,"dependency_job_id":"53879dc0-dfbd-45bc-b3ad-36dbee5635a9","html_url":"https://github.com/kevin-doolaeghe/initiation-dotnet","commit_stats":null,"previous_names":["kevin-doolaeghe/initiation-dotnet"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Finitiation-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Finitiation-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Finitiation-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Finitiation-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevin-doolaeghe","download_url":"https://codeload.github.com/kevin-doolaeghe/initiation-dotnet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859557,"owners_count":19708861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["documentation","dotnet","learning-by-doing"],"created_at":"2025-02-20T14:56:18.979Z","updated_at":"2026-02-23T22:30:17.029Z","avatar_url":"https://github.com/kevin-doolaeghe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Initiation à l'environnement C#/.NET\n\n## Utilitaire .NET CLI\n\nIl est nécessaire d'installer le SDK .NET pour avoir accès à la commande `dotnet`.\n\n### Création d'un nouveau projet .NET à partir d'un template :\n\n```\ndotnet new \u003ctemplate\u003e\n```\n\n### Ajout d'un package NuGet au projet .NET :\n\n```\ndotnet add package \u003cpackage\u003e\n```\n\n### Compilation du projet et de ses dépendences :\n\n```\ndotnet build\n```\n\n### Publication de l'application :\n\n```\ndotnet publish\n```\n\n### Création d'un package NuGet à partir du projet :\n\n```\ndotnet pack\n```\n\n### Démarrage de l'application à partir d'une DLL générée :\n\n```\ndotnet \u003cdll\u003e\n```\n\n### Démarrage de l'application sans compilation explicite :\n\n```\ndotnet run\n```\n\n### Démarrage d'un test unitaire :\n\n```\ndotnet test\n```\n\n### Nettoyage du projet :\n\n```\ndotnet clean\n```\n\n## Fichier de configuration `.csproj`\n\nIl s'agit du fichier de configuration du projet au format XML.\n\nCe fichier définit :\n- le type de la sortie de la compilation\n- la version du Framework .NET à utiliser\n- la cible de démarrage de l'application (au format `\u003cnamespace\u003e.\u003cclasse\u003e`)\n- l'icône de l'application\n- ...\n\nIl est possible de configurer manuellement des packages NuGet à utiliser :\n\n```xml\n\u003cItemGroup\u003e\n    \u003cPackageReference Include=\"\u003cpackage\u003e\" Version=\"\u003cversion\u003e\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\nLes ressources embarquées dans l'application sont également déclarées dans ce fichier :\n\n```xml\n\u003cItemGroup\u003e\n    \u003cEmbeddedResource Include=\"\u003cfichier\u003e\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\n## Visual Studio\n\nVisual Studio permet la configuration simple :\n- du projet\n- des packages NuGet\n- des ressources\n\nPour cela, il suffit d'accéder aux propriétés du projet (pas de la solution).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Finitiation-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin-doolaeghe%2Finitiation-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Finitiation-dotnet/lists"}