C# – Nuget Package Management and No-Commit Workflow

Package Manager – install files, folders, add references to third party packages supplying common functionality.

Add dependencies.
Update packages and dependencies

Tools -> Nuget Package Manager -> Package Manager Console
Install-Package elmah
Update-Package elmah

package.config file keeps track of packages, dependencies and versions.

Nuget No-Commit Workflow
To restore deleted packages at compile:

Solution Explorer -> Right-Click Solution -> Enable NuGet Package Restore

Adds a .nuget folder in the project.

Or, go to the Manage Nuget Packages dialog and click the Restore button at the top (yellow area)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: