Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 847 Bytes

File metadata and controls

21 lines (16 loc) · 847 Bytes
ms.openlocfilehash 2fc62e7161a07d739760ed638653fbdec0dfc330
ms.sourcegitcommit 2b50c450cca521681a384aa466ab666679a40213
ms.translationtype HT
ms.contentlocale zh-CN
ms.lasthandoff 04/07/2020
ms.locfileid 68860585

使用 restore 命令可下载并安装“包”文件夹中缺少的所有包。

对于迁移到 PackageReference 的项目,请使用 msbuild -t:restore 还原程序包。

restore 仅将包添加到磁盘,但不会更改项目的依赖项。 要还原项目依赖项,请修改 packages.config,然后使用 restore 命令。

与其他 nuget.exe CLI 命令一样,先打开命令行并切换到包含项目文件的目录。

要使用 restore 还原包:

nuget restore MySolution.sln