Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you have downloaded <a href="https://www.nuget.org/downloads" rel="nofollow noreferrer">NuGet.exe</a> You can run: <code>nuget pack Myproject.csproj -IncludeReferencedProjects</code> and this should include all of your projects. Here's a note from the NuGet <a href="http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package" rel="nofollow noreferrer">docs</a>:</p> <p>If the project references other projects, you can add the referenced projects as part of the package, or as dependencies with -IncludeReferencedProjects option. This is done recursively. For example, suppose you have project A.csproj, which references B.csproj and C.csproj, while B.csproj references D.csproj &amp; E.csproj, C.csproj references F.csproj &amp; G.csproj. Then, when you run:</p> <pre><code>nuget pack A.csproj -IncludeReferencedProjects </code></pre> <p>the generated package will contain files from projects B, C, D, E, F &amp; G, in addition to files from project A.</p> <p>If a referenced project has a corresponding nuspec file with the same name, then that referenced project is added as a dependency instead. Using the same example, suppose now there is file C.nuspec in the same directory as project file C.csproj. When you run:</p> <pre><code>nuget pack A.csproj -IncludeReferencedProjects </code></pre> <p>the generated package will contain files from projects B, D, E, in addition to files from project A, and the package has dependency on C.</p> <p>Please also see the <a href="http://docs.nuget.org/docs/reference/command-line-reference" rel="nofollow noreferrer">Command line reference</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload