Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

.Net Standard 2.0 Generate NuGet package including projects in the same solution and NuGet packages

$
0
0

I've read some questions similar to mine here, but they were answered about a year ago, the idea is to check if is there any news regarding this.

Assuming that i have a solution with the following structure:

  • DotNetSolution

    • DotNetProjectReferencingSubProjects (this project is the one for generating nuget package)
    • ProjectA
    • ProjectB
    • ProjectC

      -NugetPackageInsideProjectC

Structure Explanation

The idea of this project is to retrive documents from public/private clouds, but i wanted to make the call transparent to the caller, so i architeture the solution like this:

  • CloudHandler.Library.csproj
  • CloudHandler.Services.Factory.csproj
  • CloudHandler.Plugin.Aws.csproj
  • CloudHandler.Plugin.PrivateCloud1.csproj
  • CloudHandler.Plugin.Gcp.csproj
  • CloudHandler.Plugin.PrivateCloud2.csproj

CloudHandler.Library.csproj references CloudHandler.Services.Factory.csproj

CloudHandler.Services.Factory.csproj references

  • CloudHandler.Plugin.Aws.csproj
  • CloudHandler.Plugin.PrivateCloud1.csproj
  • CloudHandler.Plugin.Gcp.csproj
  • CloudHandler.Plugin.PrivateCloud2.csproj

CloudHandler.Plugin.Aws.csproj references AWSSDK.S3

When I pack CloudHandler.Library or even CloudHandler.Services.Factory, the project that use this references throws an exception, because it can't find AWSSDK.S3 reference.

How do I pack DotNetProjectReferencingSubProjects including all references? (projects and NuGet packages that those projects reference to?)

Thanks in advance.

I've read some ideas that sugest to add csproj files and it's referenced on nuspec. Thinking about maintaining the project in the future, it will be hard for someone with no knowledge to figure it out.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>