c# - How to create a project template that installs latest NuGet dependencies -


i want create template installs latest version of nuget package , of dependencies. common solution using nuget.visualstudio.templatewizard installs specified package version , doesn't resolve dependencies. want run install-package example when project using template created.

how create project template installs latest nuget dependencies?

obviously, requirement clear. not recommend doing that. because update packages break template.

what know preinstalled packages work using template wizards. special wizard gets invoked when template gets instantiated. wizard loads list of packages need installed , passes information appropriate nuget apis.

besides, both id , version attributes required in wizard, used specify version of package installed if newer version available. this prevents package updates breaking template, leaving choice update package developer using template.

what's more, update package developer simple matter. , developers update packages according requirement, no need update packages.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -