portable class library et nuget : le combo gagnant

26

Upload: microsoft-developpeurs

Post on 04-Dec-2014

618 views

Category:

Technology


1 download

DESCRIPTION

La diversification des formats d’écrans (PC, tablette, smartphone) a permis l’émergence de nouveaux scénarios et de nouveaux usages révolutionnaires. Il est désormais indispensable qu’une application soit déclinée sur chacun de ces environnements. Les Portable Class Librairies (PCL) permettent de factoriser des portions de code source communes pour mieux les réutiliser et ainsi éviter les réécritures abusives. Au menu, des démonstrations du combo gagnant : écriture de code portable grâce aux PCL dans des projets Windows 8.1 et Windows Phone 8 et création et diffusion de package Nuget pour mieux le partager ! Speakers : Edwige Seminara (MCNEXT), Audrey Petit (Microsoft), Sébastien Mornas (Microsoft France)

TRANSCRIPT

Page 1: Portable Class Library et Nuget : Le Combo gagnant
Page 2: Portable Class Library et Nuget : Le Combo gagnant

Développement

Portable Class Library & Nuget : Le Combo

gagnant

Audrey PetitConsultante Microsoft MCS

[email protected]

@audreypetit42

Edwige SeminaraConsultante .NET MCNEXT

[email protected]@EdwigeSeminara

Sébastien MornasConsultant Microsoft MCS

[email protected]

@smornas

Page 3: Portable Class Library et Nuget : Le Combo gagnant

#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

#mstechdays Développement

Présentation MCNEXT

Page 5: Portable Class Library et Nuget : Le Combo gagnant

#mstechdays Développement

• Introduction• Portable Class Library (PCL)• Packages Nuget• Q&A

Agenda

Page 6: Portable Class Library et Nuget : Le Combo gagnant

Développement#mstechdays

INTRODUCTION

Vous prendrez bien un café ?

Page 7: Portable Class Library et Nuget : Le Combo gagnant

Développement#mstechdays

PORTABLE CLASS LIBRARY (PCL)

Application Windows 8

Page 8: Portable Class Library et Nuget : Le Combo gagnant

#mstechdays Développement

Pattern MVVM

Page 9: Portable Class Library et Nuget : Le Combo gagnant

#mstechdays Développement

Solution actuelle

Page 10: Portable Class Library et Nuget : Le Combo gagnant

#mstechdays Développement

Mutualisation du code

Page 11: Portable Class Library et Nuget : Le Combo gagnant

#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

#mstechdays Développement

Mise en œuvre

Page 13: Portable Class Library et Nuget : Le Combo gagnant

démo

#mstechdays Développement

UTILISATION DES PCL

Application Windows 8

Page 14: Portable Class Library et Nuget : Le Combo gagnant

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

#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

#mstechdays Développement

…Mais ça, c’était avant !

Page 17: Portable Class Library et Nuget : Le Combo gagnant

#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

#mstechdays Développement

Anatomie d’un package Nuget

Page 19: Portable Class Library et Nuget : Le Combo gagnant

#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

#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

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

#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

#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

Développement#mstechdays

QUESTIONS

Page 25: Portable Class Library et Nuget : Le Combo gagnant

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

© 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