This may have already been asked before (if so provide links please).
I am working on a 'core' solution set for my company. We have several different projects in this solution set. Each project when built is turned into a NuGet Package to be used in our other solutions projects. What I am finding is I want to reference some of the projects in the 'core solution' with other projects in the 'core solution' via NuGet (verse using project references) so that when pushed to our NuGet, all packages are separate.
This way I have something like this:
|- Core
|- Core.Communication (this will also reference Core)
|- Core.CloudServices (this will also reference Core)
|- Core.BlobServices (this will reference Core and Core.CloudServices)
I have in the past create a script that after the build/package is complete, the package is copied to a shared location so that a NuGet Reference can be added to the location. This allowed for adding the NuGet Package and Restoring it (when updated) but this seems way complicated.
As we are using VSTS, I know I can commit to the branch each time and the build server will build/package for me and push it to our private NuGet source. This seems like the 'right way' to do it once the solution is established but initially this seems to slow down the development process.
The questions I pose to the community are:
- How do you handle this type of situation? (if you have been in it)
- Is there a way in .NET Core to make this automatically just work that I am unaware of?
- Are there VS Extensions or other 3rd party tools to help with this?