Skip to content

Using a local copy of Orchard Core source code as nuget packages

In this article, we are going to create our own local nuget feed from our copy of the Orchard Core source code and add a new package source pointing to the local packages.

Create NuGet packages from your local source code

For more information on dotnet pack see:

  • From the command line, go to the root folder of your fork/branch of the Orchard Core source code.
  • Pack all of the NuGet packages to one output folder of your choice.
    Example: dotnet pack -c Release -o c:\OrchardCoreNuget

Publish to your NuGet feed

For this example, we are going to use the Local Feed method. For more information on this see:

  • Create a folder for your NuGet Feed.
    For this example we are using \\{YourServer}\NuGetServer
  • Add the NuGet packages to your local feed.
    Example: nuget init c:\OrchardCoreNuget \\{YourServer}\NuGetServer

Update your project to use your NuGet feed

    <?xml version="1.0" encoding="utf-8"?>
        <clear />
        <add key="MyFeed" value="\\{YourServer}\NuGetServer" />
        <add key="NuGet" value="" />
      <disabledPackageSources />
  • Make sure all of your projects are referencing the OrchardCore version in your local feed.