NeuCharFramework (NCF)
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF Overview

    • NCF - NeuCharFramework
    • About NCF
    • Environment Requirements
    • Frontend and Backend Separation Mode
    • Introduction to Xncf Modules
  • Prepare Development

    • Get NCF Template Source Code
    • Using Visual Studio to Run NCF
    • Running NCF Using CLI
    • Installation
    • Admin Login
    • Admin Backend
    • appsettings.json Configuration
    • Module Management
    • Accessing Documentation
  • Configuration

    • Entry File
    • Database Settings
    • appsettings.json Configuration
    • Docker
    • Dapr
    • Configure Multi-Tenant
    • Redis Cache
  • Modular Development

    • NCF Modular Development Concept
    • Composition of Xncf
    • Create the First Xncf Module
    • Xncf Module Sample Detailed Explanation
    • Implement Your Own Business Logic
    • Update Xncf Module
    • How to Call Between Modules
    • Publish Xncf Module to nuget.org
    • Update Base Library
    • Xncf Module Development
    • Embedding Static Resource Files into NCF
    • Publish Local Nuget Package
    • Advanced
  • Database

    • Database Settings
    • Multi-Database Support
    • Specify Database
    • Update database migration files for the Senparc.Service project (Migrations)
    • Multi-Database Principle
    • DatabasePlant
    • Tarmac Operation Database Migration and Update
  • Unit Testing

    • NCF Unit Test Introduction
    • Start Development
    • Advanced
    • Appendix
  • Q&A

    • NCF Terminology
    • NCF FAQ
  • Release

    • New Features
    • Upgrade Guide
    • Logs

Update Base Library

What is updating the base library?

Updating the base library means updating the Nuget version of the underlying core libraries referenced in NCF. These base libraries are mostly NCF's foundational libraries (such as XNCF modules), and also include some third-party libraries.

How to update the base library

Method 1: Using IDE

Using Visual Studio as an example

Step 1: Open the solution (e.g., NCF.sln)

Step 2: Open Nuget Package Manager

Step 3: Search for all Senparc packages and update

For local Nuget package updates, see How to use locally compiled base libraries

Step 4: Update packages

Done.

Method 2: Using Command Line

Step 1: Open command line tool

Windows: Open CMD or PowerShell command line

MacOS: Open "Terminal" application

Step 2: Install tool

dotnet tool install --global dotnet-outdated-tool

The system will automatically install the Nuget upgrade tool for you. After completion, there will be a prompt, such as:

You can invoke the tool using the following command: dotnet-outdated
Tool 'dotnet-outdated-tool' (version '4.6.8') was successfully installed.

Note: The tool only needs to be installed once. Unless an upgrade is needed, there is no need to install it repeatedly.

If you are on MacOS, you may be asked to run an additional command to add the tool to the environment variables.

Copy and execute export PATH="$PATH:/Users/jeffreysu/.dotnet/tools" in the command line (Note: each user's path is different):

Step 3: Navigate to the NCF solution directory

Navigate to the NCF directory in the command line (the directory with *.sln files, i.e., the parent directory of the Senparc.Web folder)

Step 4: Check and install updates

Enter:

dotnet outdated -u:prompt -inc Senparc

If updates are detected, enter Y to automatically complete the update.

Done.

Method 3: Manual Update (Not Recommended)

Step 1: Double-click the project name to open the project file for editing

It will open

Step 2: Find the name of the base library you want to update

Step 3: Open Nuget, enter the name of the base library, and check the latest version number of the library

Click to open

You can see many versions, here you can choose the latest one

Step 4: Modify the version number of the referenced base library in the project file

Done.

How to use locally compiled base libraries

You can refer to the steps on how to generate a local nuget package Issue Local Nuget

After generating the local nuget package, you can put the local nuget package that needs to be referenced into a unified folder for easy management.

Use the method above How to update the base library to update.

Base Library

Edit this page on GitHub
Last Updated:
Contributors: Jeffrey Su, JeffreySu
Prev
Publish Xncf Module to nuget.org
Next
Xncf Module Development