NuGet Next Released, A Brand New Private NuGet Management

NuGet Next Released, A Brand New Private NuGet Management

NuGet Next is a private NuGet management platform based on BaGet. We have extended BaGet and provided more features.

Last updated 11/4/2024 8:33 PM
tokengo
5 min read
Category
.NET
Tags
.NET C# NuGet Private

NuGet Next is a private NuGet management platform based on BaGet, with extended features and additional functionality.

We have enhanced BaGet and added more capabilities, with better support for the Chinese market, such as localization for domestic environments.

Image

Image

Features

  • User management support
  • Package management traceability support
  • Package management support
  • Custom API key support for users
  • SqlServer database support
  • PostgreSql database support
  • MySql database support
  • DM (Dameng) database support

Quick Deployment

Deploy quickly using docker compose:

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # Note: manually create the data directory, otherwise permission issues may occur on Linux preventing writes
    environment:
      - Database:Type=SqLite
      - Database:ConnectionString=Data Source=/app/data/nuget.db # Database connection string
      - Mirror:Enabled=true # Whether to enable mirror source
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # Mirror source; if not found locally, package will be pulled from mirror
      - RunMigrationsAtStartup:true # Whether to run migrations on startup; set to true for first startup
docker-compose up -d

Domestic Database Support

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # Note: manually create the data directory, otherwise permission issues may occur on Linux preventing writes
    environment:
      - Database:Type=DM # Dameng database
      - Database:ConnectionString=Server=localhost;User id=SYSDBA;PWD=SYSDBA;DATABASE=NUGET # Database connection string
      - Mirror:Enabled=true # Whether to enable mirror source
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # Mirror source; if not found locally, package will be pulled from mirror
      - RunMigrationsAtStartup:true # Whether to run migrations on startup; set to true for first startup
docker-compose up -d

PostgreSql Database

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # Note: manually create the data directory, otherwise permission issues may occur on Linux preventing writes
    environment:
      - Database:Type=PostgreSql
      - Database:ConnectionString=Host=postgres;Port=5432;Database=nuget-next;Username=token;Password=dd666666;
      - Mirror:Enabled=true # Whether to enable mirror source
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # Mirror source; if not found locally, package will be pulled from mirror
      - RunMigrationsAtStartup:true # Whether to run migrations on startup; set to true for first startup
docker-compose up -d

MySql Database

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # Note: manually create the data directory, otherwise permission issues may occur on Linux preventing writes
    environment:
      - Database:Type=MySql
      - Database:ConnectionString=Server=mysql;Port=3306;Database=nuget-next;Uid=root;Pwd=dd666666;
      - Mirror:Enabled=true # Whether to enable mirror source
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # Mirror source; if not found locally, package will be pulled from mirror
      - RunMigrationsAtStartup:true # Whether to run migrations on startup; set to true for first startup
docker-compose up -d

SqlServer Database

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # Note: manually create the data directory, otherwise permission issues may occur on Linux preventing writes
    environment:
      - Database:Type=SqlServer
      - Database:ConnectionString=Server=sqlserver;Database=nuget-next;User Id=sa;Password=dd666666;
      - Mirror:Enabled=true # Whether to enable mirror source
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # Mirror source; if not found locally, package will be pulled from mirror
      - RunMigrationsAtStartup:true # Whether to run migrations on startup; set to true for first startup
docker-compose up -d

Usage Notes

  • Default username: admin
  • Default password: Aa123456.

Contact Us

  • Official website
  • GitHub
  • Gitee
  • Email
  • QQ group

GitHub: https://github.com/AIDotNet/NuGet.Next

Gitee: https://gitee.com/aidotnet/NuGet.Next

Demo site: https://nuget.token-ai.cn/

Image

Keep Exploring

Related Reading

More Articles
Same category / Same tag 5/24/2025

Hello .NET run file, goodbye csproj

This article introduces the new file-based program feature of the .NET CLI, which allows developers to run C# source files directly without creating a project file. This feature works by generating a virtual project file in memory and supports NuGet dependencies and project property settings, providing convenience for developing scripts and simple applications. The article also looks forward to the future development directions of this feature, including target path extension, unified command-line arguments, performance improvements, and support for more file-based program commands.

Continue Reading