• Stars
    star
    1,501
  • Rank 31,258 (Top 0.7 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created over 13 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.

NuGet Gallery β€” Where packages are found

This project powers nuget.org, the home for .NET's open-source ecosystem. For information about NuGet, visit the Home repository.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Getting started

First install prerequisites:

  1. Visual Studio 2022 - Install the following Workloads and individual components:
    • ASP.NET and web development
    • Azure development
    • Just web UI functional tests: "Web performance and load testing tools" individual component

Visual Studio 2019 may work but Visual Studio 2022 is recommended.

The "Azure development" workload installs SQL Server Express LocalDB which is the database configured for local development.

Now run the NuGet Gallery:

  1. Clone the repository with git clone https://github.com/NuGet/NuGetGallery.git
  2. Navigate to .\NuGetGallery
  3. Build with .\build.ps1
  4. Create the database and enable HTTPS with .\tools\Setup-DevEnvironment.ps1
  5. Open .\NuGetGallery.sln using Visual Studio
  6. Ensure the NuGetGallery project is the StartUp Project and press F5 to run the site

Refer to our documentation for information on how to develop the frontend, use AAD, and more.

Deploy

Deploy to Azure

You will find instructions on how to deploy the Gallery to Azure here.

Deploy locally

After you succeed in running the NuGet Gallery, you can create a publish profile to deploy locally (such as your local Windows computer).

The steps are:

  1. Select the NuGetGallery project in Solution Explore of Visual Studio.
  2. Right click the project, and then click Publish in the pop-up menu. Create a publish profile and make sure the Target is set to Folder.
  3. Copy the contents of the Target Location to any folder you want. For the following example, assume the folder is C:\ContosoSoftware\NuGetGallery.
  4. Execute the command below to start the web app (note that the parameter /path of iisexpress.exe only supports absolute paths on Windows).
    "C:\Program Files\IIS Express\iisexpress.exe" /path:C:\ContosoSoftware\NuGetGallery

Now you can access the local website with a web browser. The URL is https://localhost.

After you deploy it, you don't need using Visual Studio to run it anymore.

Contribute

If you find a bug with the gallery, please visit the Issue tracker and create an issue. If you're feeling generous, please search to see if the issue is already logged before creating a new one.

When creating an issue, clearly explain

  • What you were trying to do.
  • What you expected to happen.
  • What actually happened.
  • Steps to reproduce the problem.

Also include any information you think is relevant to reproducing the problem such as the browser version you used. Does it happen when you switch browsers. And so on.

Submit a patch

Before starting work on an issue, either create an issue or comment on an existing issue to ensure that we're all communicating. We have a list of items that are up for grabs and you can start working on (but always ping us beforehand).

To contribute to the gallery, make sure to create a fork first. Make your changes in the fork following the Git Workflow. When you are done with your changes, send us a pull request.

Copyright and License

Copyright .NET Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

The Git Workflow

This is the Git workflow we're currently using:

Setting up

Clone and checkout the dev branch.

Visual Studio may modify the applicationhost.config file. You can force git to ignore changes to this file with:

git update-index --assume-unchanged .vs/config/applicationhost.config

You can undo this with this command:

git update-index --no-assume-unchanged .vs/config/applicationhost.config

This should help prevent unwanted file commits.

When starting a new feature/unit of work.

  1. Pull the latest. Begin by pulling to make sure you are up-to-date before creating a branch to do your work This assumes you have no local commits that haven't yet been pushed (i.e., that you were previously up-to-date with origin).

    git checkout dev
    git pull dev
    
  2. Create a topic branch to do your work. You must work in topic branches to help us keep our features isolated and easily moved between branches. Our policy is to start all topic branches off of the 'dev' branch. Branch names should use the following format '[user]-[bugnumber]'. If there is no bug yet, create one and assign it to yourself!

    git checkout dev
    git checkout -b anurse-123
    
  3. Do your work. Now, do your work using the following highly accurate and efficient algorithm :)

    1. Make changes.

    2. Test your changes (you're practicing TDD, right?)

    3. Add your changes to git's index.

       git add -A
      
    4. Commit your changes.

       git commit -m "<description of work>"
      
    5. if (moreWorkToDo) go to #3.1 else go to #4.

  4. Start a code review. Start a code review by pushing your branch up to GitHub (git push origin anurse-123) and creating a Pull Request from your branch to dev. Wait for at least someone on the team to respond with: ":shipit:" (that's called the "Ship-It Squirrel" and you can put it in your own comments by typing :shipit:).

  5. Merge your changes in to dev. Click the bright green "Merge" button on your pull request! Don't forget to delete the branch afterwards to keep our repo clean.

    If there isn't a bright green button... well, you'll have to do some more complicated merging:

    git checkout dev
    git pull origin dev
    git merge anurse-123
    ... resolve conflicts ...
    git push origin dev
    
  6. Be ready to guide your change through QA, Staging and Prod Your change will make its way through the QA, Staging and finally Prod branches as it's deployed to the various environments. Be prepared to fix additional bugs!

More Repositories

1

Home

Repo for NuGet Client issues
HTML
1,476
star
2

NuGet.Client

Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues)
C#
705
star
3

NuGet.Server

NuGet Server is a lightweight standalone NuGet server
C#
550
star
4

WebBackgrounder

Proof of concept of a web based background task manager that deals well with web farms/app shutdowns
C#
321
star
5

NuGetDocs

Former Documentation site for NuGet - now replaced by NuGet/docs.microsoft.com-nuget
C#
159
star
6

docs.microsoft.com-nuget

Documentation for NuGet
PowerShell
147
star
7

Samples

NuGet team sample repo
C#
131
star
8

NuGet2

This is the home of nuget.core and all the repos from codeplex.
C#
92
star
9

Announcements

Subscribe to this repo to be notified of upcoming proposals and other important changes to NuGet
82
star
10

PoliteCaptcha

PoliteCaptcha is a spam prevention library for use with ASP.NET MVC that attempts polite spam prevention first, before rudely presenting the user with a CAPTCHA.
C#
73
star
11

NuGet.Build.Packaging

The NuGetizer-3000 is here!
C#
70
star
12

setup-nuget

TypeScript
69
star
13

NuGet.Jobs

C#
49
star
14

Insights

Gather insights about public NuGet.org package data
C#
24
star
15

NuGet.Services.Metadata

NuGet's Metadata Service
24
star
16

ServerCommon

Common libraries used across the server repos
C#
20
star
17

Entropy

A place for random samples, prototypes and ideas. None of the stuff here is supported or production grade.
C#
20
star
18

NuGet.Services.Dashboard

NuGet Services Monitoring Dashboard
JavaScript
11
star
19

docs.microsoft.com-nuget.zh-cn

Documentation repo for NuGet localized for zh-cn language-culture
PowerShell
9
star
20

Media

Media files for use in your NuGet integration projects
HTML
7
star
21

PackageSourceMapper

A home of the PackageSourceMapper tool that helps onboard users to PackageSourceMapping
PowerShell
7
star
22

NuGet.Services.EndToEnd

C#
6
star
23

NuGet.Operations

Operations console for executing jobs for NuGet Services
C#
6
star
24

NuGet.Services.Work

Worker that executes queued jobs for the various NuGet Services
C#
5
star
25

NuGet.Schema

5
star
26

NuGet.Licenses

A host for SPDX license text. Also allows parsing of SPDX license expressions.
C#
5
star
27

NuGet.Warehouse

A data warehouse for NuGet Gallery package downloads
PLpgSQL
4
star
28

NuGet.PackageIndex

This repo contains NuGet's implementation of the VS2015 'Add Missing NuGet packages' feature.
C#
4
star
29

NuGet.Build.Localization

Holds localization artifacts for NuGet client dlls.
Rich Text Format
4
star
30

NuGet.Services.Platform

Shared/common code for the NuGet Services
C#
3
star
31

docs.microsoft.com-nuget.ja-jp

Documentation repo for NuGet localized for ja-jp language-culture
PowerShell
3
star
32

docs.microsoft.com-nuget.ko-kr

Documentation repo for NuGet localized for ko-kr language-culture
PowerShell
3
star
33

OpsDashboard

NuGet Gallery Operations Dashboard
C#
2
star
34

NuGet.Services.Messaging

NuGet's email processing service
PowerShell
2
star
35

NuGet.Staging

A repository for the NuGet staging feature
2
star
36

docs.microsoft.com-nuget.es-es

Documentation repo for NuGet localized for es-es language-culture
PowerShell
2
star
37

NuGet.Services.Metrics

C#
2
star
38

NuGet.Services.Gateway

Gateway application for NuGet API Services
C#
2
star
39

NuGet.Services.Status

NuGet's status page
C#
1
star
40

docs.microsoft.com-nuget.de-de

Documentation repo for NuGet localized for de-de language-culture
PowerShell
1
star
41

docs.microsoft.com-nuget.pl-pl

Documentation repo for NuGet localized for pl-pl language-culture
PowerShell
1
star
42

docs.microsoft.com-nuget.handback

Handback repo for docs localization efforts
1
star
43

docs.microsoft.com-nuget.handoff

Handoff repo for docs localization efforts
1
star
44

.github

1
star
45

docs.microsoft.com-nuget.ru-ru

Documentation repo for NuGet localized for ru-ru language-culture
PowerShell
1
star
46

Spotlight

A repository to spotlight popular and upcoming NuGet packages
1
star