NuGet Sweet, but not edible Chris

Slides:



Advertisements
Similar presentations
Frozen Bytes: NuGet 101 Blazing Fast Overview.NET Package Management for the Enterprise.
Advertisements

Learning WebMatrix Part 3 of 3 Akber Alwani
Aneef Fashir Software Architect Assette. About Myself 5 years of experience in programming. BSc(Hons) in Computer Science and MIS. Currently working at.
IWay Service Manager 6.1 Product Update Scott Hathaway iWay Software Copyright 2010, Information Builders. Slide 1.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
11 SHARING FILE SYSTEM RESOURCES Chapter 9. Chapter 9: SHARING FILE SYSTEM RESOURCES2 CHAPTER OVERVIEW  Create and manage file system shares and work.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Building a social networking portal on Windows Azure in 1 hour Saranya Sriram Developer Evangelist Microsoft, India.
® IBM Software Group © 2003 IBM Corporation How to Download and Install RMC 7.5 David Trent RMC Product Manager.
Linux Operations and Administration
By Jeerarat Boonyanit. As you can see I have chosen Cpanel for my server management tool. cPanel is a Linux based web hosting control panel that provides.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July 2012.
Ori Calvo, 2010 Hi-Tech College
MVC New release IE8 Beta 1 Deep Zoom (sea dragon) Silver light 2.0 Beta 1 Expression Blend 2.5 Preview Instant Messaging API Enhancements to Virtual Earth.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Crystal Hoyer Program Manager IIS Team Preview of features that will be announced at MIX09 Please do not blog, take pictures or video of session.
Introduction to DotNetNuke Scott McCulloch DotNetNuke Core Team
©Kwan Sai Kit, All Rights Reserved Windows Small Business Server 2003 Features.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
IT 211 Project Integration and Deployment Lab #11.
Introducing Reporting Services for SQL Server 2005.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Extending ArcGIS for Server
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Slide 2 The Microsoft Office Project 2003 Software Development Kit Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation Uma.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
WEBMATRIX Microsoft Pranav Rastogi.
Portal for ArcGIS An Introduction
Hands-On Microsoft Windows Server Implementing Microsoft Internet Information Services Microsoft Internet Information Services (IIS) –Software included.
DEV304. What scriptcs is and why it exists How to get it Basics of how to use it Putting the pedal to the metal.
#RefreshCache NuGet THE Open Source Package Management System for.NET Nick Airdo Community Developer Advocate Central Christian Church AZ (cccev)
GET NEW STUFF WITH NUGET By Jon Marozick & Loren Halvorson.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July 2012.
2008 Summer Road Trip Welcome! Summer Roadtrip Overview Showcase of 2008 Launch Wave offerings End to end application build with Visual Studio 2008.
1 KaaShiv InfoTech  Presents  INTEL XDK For Inplant Training / Internship, please download the "Inplant training registration form" from our website.
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
Module 6: Configuring User Environments Using Group Policies.
Windows SharePoint Services Installation and Configuration.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
Eliminate Team Build Headaches with Unit Tests, WiX and Virtualization Benjamin Day
Inspirirani ljudima. Ugasite mobitele. Hvala.. Paolo Pialorsi Senior Consultant PiaSys ( Publishing apps for SharePoint 2013 on Microsoft.
Database Development with SQL Server Data Tools (SSDT) Björn Eriksen, Architect Evangelist DPE Microsoft
11 DEPLOYING AN UPDATE MANAGEMENT INFRASTRUCTURE Chapter 6.
Windows App Studio Windows App Studio is the tool that makes it fast and easy to build Windows 10 apps. It’s accessible from any device with a browser.
Managing User Desktops with Group Policy
Introduction ITEC 420.
DevOps with ASP.NET Core and Entity Framework Core
Umair Tariq Xavor Pakistan (Pvt) Ltd..
Stress Free Deployments with Octopus Deploy
DotNetSpider Editor Hefin Dsouza
System Center 2012 Configuration Manager
DotnetConf 9/10/2018 7:49 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
Data Virtualization Demoette… ADO.NET Client
An In-Depth Look at the Autodesk® AutoCAD® App Autoloader Module
Visual Studio Tools for Office 2005
By Gary Mandela December 26, 2006
Build /21/2018 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
SharePoint 2019 Changes Point of View.
Alan Chalker and Eric Franz Ohio Supercomputer Center
Microsoft Virtual Academy
Genome Workbench Chuong Huynh NIH/NLM/NCBI New Delhi, India
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Introduction to Portal for ArcGIS
Concepts in ASP.NET Core App
Microsoft 365 Business Technical Fundamentals Series
ASP.NET Core Middleware Fundamentals
Presentation transcript:

NuGet Sweet, but not edible Chris

Shameless Plug… Daily.NET news from the Blog’o’sphere: – Latest Software Releases – Best Articles – UK Community news

Agenda What is NuGet, What’s it all about? Using NuGet as a package consumer Creating your own packages – Simple Package creation – Advanced Package creation Embracing the Package Manager Console Configuring package sources

What Is NuGet?.NET Package Manager Originally Nu / NuPack, renamed to NuGet Shipped With ASP.NET MVC3 Open Source – Part of Outercurve Foundation, hosted on CodePlex In Top 5 New Open Source Project to Watch 2010 Currently version

Package Management?!?!? Tools to make it easy to obtain, install and update libraries Influenced by other Package Managers: – Apt-Get - Linux – Gems - Ruby – HornGet -.NET Other.NET Packages Managers exists – OpenWrap

How NuGet Helps… Makes getting and installing packages easy Nice IDE Integration Provides means of finding and distributing packages Deals with more than just.NET assemblies Supports projects targeting different runtime versions and platforms Rich installation and scripting support

Package Gallery Provides official source of NuGet Packages Package publishing, ownership and community functions Package Stats –

Demonstration Using NuGet as a package consumer (GUI)

Demonstration Installing & Uninstalling Packages via Console

Packaging Your Wares Steps: – Write your library / Code – Define Package Specification, Files to be included, etc – Build the package – Publish – Consume Shortcuts and Tooling makes some of this easy

Packaging Your Wares Can’t do it with the Extension alone Get NuGet.Exe from CodePlex NuGet Package Explorer is also really useful Both available from

Parts of NuGet Package NuGet Packages can contain: – Assemblies – Content Files – Configuration – Scripts Uses convention over configuration

Other Uses for Packaging Nuget isn’t just useful for distributing.NET Assemblies Can also package: – JavaScript libraries – Samples – Scripts Any Tools or files are possible

Demonstration Making a Package (or 2)

So What Else? NuGet Package Console IS PowerShell Gives easiest way to do command line operations on your VS projects PowerShell’s inclusion provides scripting capabilities for packages

Demonstration Package Management Console OR PowerShell Console

PowerShell In Packages 3 Special PowerShell Scripts in NuGet – Init.ps1 – Install.ps1 – Uninstall.ps1 Scripts located in Tools package folder Have access to Environment via parameters: – $installPath, $toolsPath, $package, $project

Demonstration PowerShell In Packages

Web Start-Up Code Simple way to enable start-up of your library in Web Apps WebActivator NuGet library Replacements of the [PreApplicationStartMethod] and [PostApplicationStartMethod] attributes which were included in.NET 4

Demonstration Using WebActivator in your packages

Extending IDE w/ PowerShell NuGet Packages can add commands to Package Management Console Implement as Standard PowerShell Functions / Modules Register using Init.ps1 NuGet Script

Demonstration Extending IDE

Package Sources The NuGet Extension supports multiple Package Sources in a hierarchy Problems if One source is down Three ways to add your own: – Local Directories – Read Only Server – Your Own Gallery

Working with Multiple Sources Configure sources in Package Manager Settings Choose Source in console Use –Source in Nuget.exe

Directory Source Easiest to set up Works over network drives too Add your own packages or pull in public packages

Demonstration Own Packages in Directory

Hosting Web Based Read Only Next Logical Step, moving closer to the full gallery experience Made possible using a NuGet Package – NuGet.Server It’s a web application, so you can add to it, read more about that here: –

Demonstration Hosting Read Only

Your Own Gallery NuGet official Gallery is based on Orchard CMS All Open Source – can create your own Gives full fidelity – Create packages and publish to gallery – Browse Gallery – Manage your packages – Extend or integrate with your own requirements Great set of instructions online on the NuGet Documentation site –

NuGet Gallery Requirements.NET 4 IIS – 2 Hosts, Gallery and Gallery Service SQL Server Express / SQL Server – 2 databases & suitable authentication Mercurial MSBuild in your Path ~1.3GB Disk Space

Demonstration Your Own Gallery

Summary Explored package consumption Built packages in a variety of ways Seen how PowerShell can be used in the IDE Looked at the options for managing your own NuGet Feed

Further Information & Questions Main Site: Documentation: Project: Mix11 – Scott Hanselman & Phil Haack – NuGet In Depth TechEd North America 11 – Scott Hanselman - NuGet: Microsoft.NET Package Management for the Enterprise NuGet Gallery Project: Orchard Project: These slides will be online - PowerPoint Template Based on