one horror stories around nuget

Post on 31-May-2015

322 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

TwoTwo One horror One horror stories around stories around NuGetNuGet

Story 1Story 1

Transformation Transformation web.configweb.config

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.

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

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.

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.

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!

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.

Story 2Story 2

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

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

top related