主页 > 澳门永利娱乐 > >Package Restore
澳门永利娱乐

Package Restore

时间:2018-10-17 05:15供稿单位:织梦58打印字号:

  To promote a cleaner development environment and to reduce repository size, Nu澳门永利娱乐 Package Restore installs all a project's dependencies as listed in either the project file or . Visual Studio can restore packages automatically when a project is built. The and commands (澳门永利娱乐 Core 2.0+) also perform an automatic restore. You can also restore packages at any time t澳门永利娱乐ough Visual Studio, , , and xbuild on Mono.

  Package restore makes sure that all a project's dependencies are available without storing those packages in source control. See Packages and Source Control on how to configure your repository to exclude package binaries.

  Restoring packages first installs the direct dependencies of a project as needed, then installs any dependencies of those packages t澳门永利娱乐oughout the entire dependency graph.

  If a package is not already installed, Nu澳门永利娱乐 first attempts to retrieve it from the cache. If the package is not in the cache, Nu澳门永利娱乐 then attempts to download the package from all enabled sources (see Configuring Nu澳门永利娱乐 behavior; sources also appear in the Tools > Options > Nu澳门永利娱乐 Package Manager > Package Sources list in Visual Studio). During restore, Nu澳门永利娱乐 ignores the order of package sources, using the package from whichever source is first to respond to requests.

  Package restore is triggered in the following ways:

  dotnet CLI: use the dotnet restore command, which restores packages listed in the project file (see PackageReference). With 澳门永利娱乐 Core 2.0 and later, restore is done automatically with and .

  Package Manager UI (Visual Studio on Windows): Packages are restored automatically when creating a project from a template and when building a project (subject to the option described in Enabling and disabling package restore). In Nu澳门永利娱乐 4.0+, restore also happens automatically when changes are made to a 澳门永利娱乐 Core SDK-based project.

  To restore manually, right-click the solution in Solution Explorer and select Restore Nu澳门永利娱乐 Packages. If one or more individual packages are still not installed properly (meaning that Solution Explorer shows an error icon), then use the Package Manager UI to uninstall and reinstall the affected packages. See Reinstalling and updating packages

  If you see the error "This project references Nu澳门永利娱乐 package(s) that are missing on this computer" or "One or more Nu澳门永利娱乐 packages need to be restored but couldn't be because consent has not been granted," turn on automatic restore by following the instructions under Enabling and disabling package restore. Also see Package restore troubleshooting.

  Nu澳门永利娱乐 CLI: use the nu澳门永利娱乐 restore command, which restores packages listed in the project file or in . You can also specify a solution file.

上一篇:S8符文壹键设置 澳门永利赌场官方网址game怎么设
下一篇:没有了