-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added documentation for using Orchard Core from a local NuGet packages #11284
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
35dbea3
Added documentation for using Orchard Core from a local NuGet package…
DrewBrasher 34d5ddf
Put the local feed first in the nuget.config example
DrewBrasher ca8ec06
Moved the Using Local NuGet Packages doc to the Key Topics section
DrewBrasher 412effc
Changed markdown list indicator to match other documentation
DrewBrasher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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: <https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-pack> | ||
* 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: <https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds> | ||
* 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 | ||
|
||
* Update your nuget.config file so it points to your local feed. | ||
https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesources | ||
```xml | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="MyFeed" value="\\{YourServer}\NuGetServer" /> | ||
</packageSources> | ||
<disabledPackageSources /> | ||
</configuration> | ||
``` | ||
* Make sure all of your projects are referencing the OrchardCore version in your local feed. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local feed should be set before the Nuget (Public) one so that it knows which one to retrieve from first (priority).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in 34d5ddf