Thanks for all who attended the Nebraska Code Camp and joined the “Using NuGet to get the most out of your Common Components” Session. During the session we discussed how NuGet can help out with common components and demonstrated how to create and consume your own NuGet packages.
Apply What You Learned…
Can you create packages for your common components and develop a repository of tools to pull into your applications to speed up your development? What common components do you already have? Authentication, Authorization, Custom Errors, Custom jQuery Validation, Terms & Conditions, Privacy Policies, CSS….
How are you going to integration NuGet packaging into your SDLC? Build Automation? Governance? Guidelines? Definition of Done (DoD)?
Are you going to stop Yak Shaving and start creating NuGet Packages? Build your tools so you can be fast!
“Firms today experience a much higher velocity of business change. Market opportunities appear or dissolve in months or weeks instead of years”
Download the sample code: NCC – NuGet Sample Code
nuget push *.nupkg -source <your repo location here>
Editing Project File to include MSBuild Targets:
<Target Name="AfterBuild" DependsOnTargets="Publish" Condition="'$(Configuration)' == 'Release' "> </Target> <Target Name="Package"> <Exec WorkingDirectory="$(BaseDir)" Command="nuget pack -Properties Configuration=$(Configuration)" /> </Target> <Target Name="Publish" DependsOnTargets="Package"> <Exec WorkingDirectory="$(BaseDir)" Command="nuget push *.nupkg -Source C:\NRB\workspaces\source\Demos\NuGet\Repo" /> </Target>