When you create a package with scaffolders, these scaffolders are available in the projects referencing this package. I want scaffolders that create projects if not there yet.
This works if i have a package installed at the solution level, not the project level, so it is available in all projects.
I see two ways to install packages at the solution level:
I can only find two ways to add packages at the solution level:
- Create an empty solution, type install-package mypackage
- In the nuget console/powershell command window outside of Visual Studio I set my location to the packages folder next to my solution and type
NuGet install mypackage
With this approach I get the set of scaffold commands in all projects.
Is this a good approach? Shouldn't install-package have a flag to say that a package should be installed at the solution level, not the project level?
Alternative would be to call install-package for all projects, but there is no mechanism to specify all products, and how shoud we handle ir when a new product is added,