40
NuGet for The Enterprise .NET Package Management Scott Hanselman Principal Program Manager Microsoft DEV338 Microsoft Community DevUG Rijeka Hrvoje Hudoletnjak StratusNav

NuGet for The Enterprise .NET Package Management

  • Upload
    libby

  • View
    60

  • Download
    0

Embed Size (px)

DESCRIPTION

Microsoft Community DevUG Rijeka. DEV338. NuGet for The Enterprise .NET Package Management. Scott Hanselman Principal Program Manager Microsoft. Hrvoje Hudoletnjak StratusNav. PublishSettingsGenerator. UrlShortener.Helper. postal. nservicebus. Simple.Data.Core. Autofac. FakeItEasy. - PowerPoint PPT Presentation

Citation preview

Page 1: NuGet  for The Enterprise .NET Package Management

NuGet for The Enterprise.NET Package Management

Scott HanselmanPrincipal Program ManagerMicrosoft

DEV338

Microsoft Community

DevUG Rijeka

Hrvoje HudoletnjakStratusNav

Page 2: NuGet  for The Enterprise .NET Package Management

2

Page 3: NuGet  for The Enterprise .NET Package Management

CastleN

Hib

ern

ate

log4net

NUnit

Elm

ah

Nin

ject

Antlr

Iesi Collections

jQuery

New

tonso

ft.Jso

n

Moq

FluentNHibernate

AutoMapperStructureMap

NLog

Autofac

Facebook SDKRx

RhinoMocks

MvcContrib

51Degrees.mobiD

otN

etO

pen

Au

th

Com

mon

.Log

gin

g

MvvmLight

BBCode

Mvc

Mai

ler

xuni

t

Flu

entV

alid

atio

n

Ham

moc

k

SharpZipLib

FluentHtml-ciMachine.Specifications

jQuery.Validation

WatiN

Htm

lAgi

lityP

ack

Simple.Data.Core

CLEditor

Simple.Data.CoreAltairis.Web.Security

UrlShortener.HelperiT

extS

harp

QuickGraph

DotNetZip

FakeItEasy

PublishSettingsGenerator

Spa

rk

NSubstitute

RavenDB

Luce

ne

AutoPoco

RestSharp

Should

postalnservicebus

reac

tive

ui-c

ore

linq

.js

fast

erfle

ct

combres

TweetSharp

MvcSiteMapProvider

Ad

am.J

SG

en

era

tor

Flu

en

tAss

ert

ion

s

Bootstrapper

AzureToolkit

ErikEJ.SqlCeMembership

Page 4: NuGet  for The Enterprise .NET Package Management

Make using OSS as easy as “Add Reference”

Page 5: NuGet  for The Enterprise .NET Package Management

Make using software as easy as “Add Reference”

Page 6: NuGet  for The Enterprise .NET Package Management

How do we do that?

Page 7: NuGet  for The Enterprise .NET Package Management

BUILD UP THE DEVELOPERECOSYSTEM

Page 8: NuGet  for The Enterprise .NET Package Management

Adding a library to a project

What is the experience to add an existing 3rd Party or open source library to a project today?Let’s take a look

Page 9: NuGet  for The Enterprise .NET Package Management

Like all good stories, it

starts with a Google search

Page 10: NuGet  for The Enterprise .NET Package Management

Like all good stories, it

starts with a Bing

search

Page 11: NuGet  for The Enterprise .NET Package Management

So far so good in this case.

Page 12: NuGet  for The Enterprise .NET Package Management

This looks right

Page 13: NuGet  for The Enterprise .NET Package Management
Page 14: NuGet  for The Enterprise .NET Package Management

?Turns out, this is the right one.

Page 15: NuGet  for The Enterprise .NET Package Management

Looks right to me,

I guess.

Page 16: NuGet  for The Enterprise .NET Package Management
Page 17: NuGet  for The Enterprise .NET Package Management
Page 18: NuGet  for The Enterprise .NET Package Management

Before we extract it, we need to visit

the Properties

Page 19: NuGet  for The Enterprise .NET Package Management

Don’t forget this!

Page 20: NuGet  for The Enterprise .NET Package Management
Page 21: NuGet  for The Enterprise .NET Package Management
Page 22: NuGet  for The Enterprise .NET Package Management

Extract assemblies to a folder within

the solution directory

Page 23: NuGet  for The Enterprise .NET Package Management
Page 24: NuGet  for The Enterprise .NET Package Management
Page 25: NuGet  for The Enterprise .NET Package Management
Page 26: NuGet  for The Enterprise .NET Package Management

Need to add the correct

configuration to web.config

Page 27: NuGet  for The Enterprise .NET Package Management
Page 28: NuGet  for The Enterprise .NET Package Management

Finally! It works!

Page 29: NuGet  for The Enterprise .NET Package Management

that‘s for a single assembly!

Page 30: NuGet  for The Enterprise .NET Package Management

What Happens When I’m Ready For Build V2?

Page 31: NuGet  for The Enterprise .NET Package Management

we can do much better!

Page 32: NuGet  for The Enterprise .NET Package Management

Our NuGet Agenda

Basics: What it can doMaking Packages & PublishingCommand-line vs. UIExamples from Simple to Advanced

Conventions, Transforms and Preprocessing, PowerShell

NuGet Servers of all SizesNuGet and Source ControlNuGet and Continuous Integration Extreme Examples

Page 33: NuGet  for The Enterprise .NET Package Management

What about big boring companies?

Page 34: NuGet  for The Enterprise .NET Package Management

What problem are we trying to solve?

Sharing business level components among teams.Sharing best practices among teams.Build productivity helpers on top of existing Out of the Box, Open Source or 3rd party tools and libraries.Setup configuration that is specific to the enterprise environment.

Page 35: NuGet  for The Enterprise .NET Package Management

How is this solved today

File shares with folders full of assemblies or downloaded 3rd party installers.Tribal knowledgeSparse documentation in wikis or email threads.Pulled from existing source code trees within the company.

Page 36: NuGet  for The Enterprise .NET Package Management

How does NuGet help?

Provides a central location to store this knowledge, in the form of code, assemblies, configuration, and automation scripts.Provides concrete solutions rather than guidance, policies, or abstract standards.

Page 37: NuGet  for The Enterprise .NET Package Management

Continuous Integration

Create a second Repository for CI builds.Automate the NuGet Package creation from your CI builds to publish to the CI RepositoryAutomatically increment your version numbers in your assemblies and NuGets

Page 38: NuGet  for The Enterprise .NET Package Management

PILE OF DEMOS!NuGet

Page 39: NuGet  for The Enterprise .NET Package Management

Development

NuGet is an OuterCurve Foundation ProjectHosted on http://nuget.codeplex.comExternal contributions allowed

Several external core contributorsMonthly point release cadenceLarge uptake so far: http://stats.nuget.org

Page 40: NuGet  for The Enterprise .NET Package Management

Web Track Resources

http://www.asp.net/http://www.silverlight.net/http://www.microsoft.com/web/gallery/http://www.iis.net/http://weblogs.asp.net/Scottgu/http://www.hanselman.com