one horror stories around nuget

11

Click here to load reader

Upload: jun-ichi-sakamoto

Post on 31-May-2015

322 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: One horror stories around NuGet

TwoTwo One horror One horror stories around stories around NuGetNuGet

Page 2: One horror stories around NuGet

Story 1Story 1

Page 3: One horror stories around NuGet

Transformation Transformation web.configweb.config

Page 4: One horror stories around NuGet

NuGet can transform NuGet can transform web.configweb.config

•• If the NuGet package contains If the NuGet package contains "web.config.transform", NuGet package "web.config.transform", NuGet package system transform the web.config at the system transform the web.config at the install/uninstall package.install/uninstall package.

Page 5: One horror stories around NuGet

But, there is a scenario But, there is a scenario about conflict transform ...!about conflict transform ...!

Page 6: One horror stories around NuGet

BackgroundBackground

•• The NuGet package "Foo" transform The NuGet package "Foo" transform web.confg that insert <validate/> section.web.confg that insert <validate/> section.

•• The NuGet package "Bar" contains same The NuGet package "Bar" contains same transform too.transform too.

Page 7: One horror stories around NuGet

At 1st...At 1st...

•• Bob install packages both "Foo" and "Bar" Bob install packages both "Foo" and "Bar" to his project.to his project.

•• <validate/> section inserted.<validate/> section inserted.

Page 8: One horror stories around NuGet

2nd...2nd...

•• Bob Bob uninstalluninstall package "Foo".package "Foo".•• then, then, disappear <validate/> sectiondisappear <validate/> section from from web.config...!web.config...!

Package "Bar" stil need it!Package "Bar" stil need it!

Page 9: One horror stories around NuGet

What can I do to solve this What can I do to solve this horror story?horror story?

•• I have no idea...I have no idea...•• I appriciate for you if you tell me about I appriciate for you if you tell me about your idea.your idea.

Page 10: One horror stories around NuGet

Story 2Story 2

•• This story is fixed now!This story is fixed now!

Page 11: One horror stories around NuGet

Have a good Have a good coding :)coding :)