![Page 1: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/1.jpg)
![Page 2: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/2.jpg)
Développement
Portable Class Library & Nuget : Le Combo
gagnant
Audrey PetitConsultante Microsoft MCS
@audreypetit42
Edwige SeminaraConsultante .NET MCNEXT
[email protected]@EdwigeSeminara
Sébastien MornasConsultant Microsoft MCS
@smornas
![Page 3: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/3.jpg)
#mstechdays Développement
Présentation Microsoft Services
Support PremierEntreprise Strategy
Microsoft Consulting Services
Concevoir et DéployerImaginer et Planifier Optimiser et MaintenirEnvironnement de travail et mobilité
La collaboration
La productivité
Applications Uniques et Innovantes
Cloud Privé et Cloud Public
L’automatisation de processus métier
Les réseaux sociaux d’entreprise
Business Intelligence et Big Data
Microsoft Services
700 Experts
en France
Un écosystè
me Partenair
es
Un capital
intellectuel
![Page 4: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/4.jpg)
#mstechdays Développement
Présentation MCNEXT
![Page 5: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/5.jpg)
#mstechdays Développement
• Introduction• Portable Class Library (PCL)• Packages Nuget• Q&A
Agenda
![Page 6: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/6.jpg)
Développement#mstechdays
INTRODUCTION
Vous prendrez bien un café ?
![Page 7: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/7.jpg)
Développement#mstechdays
PORTABLE CLASS LIBRARY (PCL)
Application Windows 8
![Page 8: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/8.jpg)
#mstechdays Développement
Pattern MVVM
![Page 9: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/9.jpg)
#mstechdays Développement
Solution actuelle
![Page 10: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/10.jpg)
#mstechdays Développement
Mutualisation du code
![Page 11: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/11.jpg)
#mstechdays Développement
• Bibliothèque de classes multiplateforme• Compilée une seule fois• Partage du code source commun• Extraction d’interfaces
Portable Class Library : Qu’est-ce que c’est ?
![Page 12: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/12.jpg)
#mstechdays Développement
Mise en œuvre
![Page 13: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/13.jpg)
démo
#mstechdays Développement
UTILISATION DES PCL
Application Windows 8
![Page 14: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/14.jpg)
Développement#mstechdays
PACKAGES NUGET
Une boîte de 6 ? Une boîte de 9 ?
![Page 15: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/15.jpg)
#mstechdays Développement
• Recherche Bing• Trouver le bon site• Trouver la page de
téléchargement• Télécharger la bonne
version• Débloquer / extraire le
ZIP• Ajouter les dll dans le
projet• Appliquer les consignes
d’utilisation (nécessite de réfléchir)
Avant Nuget…
![Page 16: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/16.jpg)
#mstechdays Développement
…Mais ça, c’était avant !
![Page 17: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/17.jpg)
#mstechdays Développement
L’Open Source !
• Publication super simple par les développeurs du projet
• Recherche simplifiée pour l’utilisateur
• Ajout dans la solution / configuration automatisée
• Mises à jour facilitées
L’Entreprise !
• Partage de code source entre les équipes / modularité des développements
• Partage des bonnes pratiques / réutilisation de code
• Configurations spécifiques à une entreprise
Parfait pour…
![Page 18: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/18.jpg)
#mstechdays Développement
Anatomie d’un package Nuget
![Page 19: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/19.jpg)
#mstechdays Développement
Ligne de commandeEx : nuget.exe pack monprojet.csproj
Nuget Package Explorer
Créer un package Nuget
![Page 20: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/20.jpg)
#mstechdays Développement
• Déployer sur nuget.orget / ou
• Déployer dans un repository privé– Dossier– Serveur de fichiers– Site interne
« Nuget.org like »
Déployer vos packages Nuget
![Page 21: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/21.jpg)
démo
#mstechdays Développement
PACKAGES NUGET
Création et utilisation d’un package Nuget
![Page 22: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/22.jpg)
#mstechdays Développement
• Site officiel de NuGet : http://www.nuget.org• Page CodePlex du projet NuGet : http://nuget.codeplex.com/• NuGet Package Explorer : http://npe.codeplex.com/• NuGet: Microsoft .NET Package Management for the
Enterprise : http://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/DEV338
Ressources
Et pour le design : Merci Julien Fillieux !
![Page 23: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/23.jpg)
#mstechdays Développement
Depuis votre smartphone sur :http://notes.mstechdays.fr
De nombreux lots à gagner toute les heures !!!Claviers, souris et jeux Microsoft…
Merci de nous aider à améliorer les Techdays !
Donnez votre avis !
![Page 24: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/24.jpg)
Développement#mstechdays
QUESTIONS
![Page 25: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/25.jpg)
NOTEZ LES SESSIONS 2014 ET TENTEZ DE GAGNER DES CLAVIERS ET DES BONS D’ACHAT DE 25€ ET 50€ !*
*Jeu gratuit sans obligation d’achat. Règlement déposé auprès de la Société Civile Professionnelle Raynald PARKER et Raphaël PERROT, Huissier de Justice associés. Détail des lots et du règlement disponible en cliquant ici.
Directement via l’url: http://notes.mstechdays.fr
Sur le site mobile http://www.mstechdays.fr
Ou en flashant les QR codes présent à l’entrée de chaque salle
![Page 26: Portable Class Library et Nuget : Le Combo gagnant](https://reader035.vdocuments.net/reader035/viewer/2022062615/547fb2cab4af9f90278b4897/html5/thumbnails/26.jpg)
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Digital is business