NuGet在2015中的使用

NuGet Package Restore  https://docs.nuget.org/Consume/Package-Restore

 

https://github.com/andburn/hdt-plugin-statsconverter项目为例

1.在Tools里面

 

2.选择install

 

 

3.

 

 

Attempting to gather dependencies information for package 'Microsoft.Owin.Security.3.0.1' with respect to project 'StatsConverter', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'Microsoft.Owin.Security.3.0.1' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.Owin.Security.3.0.1'
Resolved actions to install package 'Microsoft.Owin.Security.3.0.1'
Attempting to gather dependencies information for package 'Microsoft.Owin.Security.3.0.1' with respect to project 'StatsConverterTest', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'Microsoft.Owin.Security.3.0.1' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.Owin.Security.3.0.1'
Resolved actions to install package 'Microsoft.Owin.Security.3.0.1'
For adding package 'Owin.1.0.0' to project 'StatsConverter' that targets 'net45'.
For adding package 'Owin.1.0.0' to project 'StatsConverter' that targets 'net45'.
Adding package 'Owin.1.0.0' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added package 'Owin.1.0.0' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Owin' to project 'StatsConverter'.
Added package 'Owin.1.0.0' to 'packages.config'
Successfully installed 'Owin 1.0.0' to StatsConverter
For adding package 'Microsoft.Owin.3.0.1' to project 'StatsConverter' that targets 'net45'.
For adding package 'Microsoft.Owin.3.0.1' to project 'StatsConverter' that targets 'net45'.
Adding package 'Microsoft.Owin.3.0.1' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added package 'Microsoft.Owin.3.0.1' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Microsoft.Owin' to project 'StatsConverter'.
Added package 'Microsoft.Owin.3.0.1' to 'packages.config'
Successfully installed 'Microsoft.Owin 3.0.1' to StatsConverter
For adding package 'Microsoft.Owin.Security.3.0.1' to project 'StatsConverter' that targets 'net45'.
For adding package 'Microsoft.Owin.Security.3.0.1' to project 'StatsConverter' that targets 'net45'.
Adding package 'Microsoft.Owin.Security.3.0.1' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added package 'Microsoft.Owin.Security.3.0.1' to folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Microsoft.Owin.Security' to project 'StatsConverter'.
Added package 'Microsoft.Owin.Security.3.0.1' to 'packages.config'
Successfully installed 'Microsoft.Owin.Security 3.0.1' to StatsConverter
For adding package 'Owin.1.0.0' to project 'StatsConverterTest' that targets 'net45'.
For adding package 'Owin.1.0.0' to project 'StatsConverterTest' that targets 'net45'.
Package 'Owin.1.0.0' already exists in folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Owin' to project 'StatsConverterTest'.
Added package 'Owin.1.0.0' to 'packages.config'
Added file 'packages.config' to project 'StatsConverterTest'.
Successfully installed 'Owin 1.0.0' to StatsConverterTest
For adding package 'Microsoft.Owin.3.0.1' to project 'StatsConverterTest' that targets 'net45'.
For adding package 'Microsoft.Owin.3.0.1' to project 'StatsConverterTest' that targets 'net45'.
Package 'Microsoft.Owin.3.0.1' already exists in folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Microsoft.Owin' to project 'StatsConverterTest'.
Added package 'Microsoft.Owin.3.0.1' to 'packages.config'
Successfully installed 'Microsoft.Owin 3.0.1' to StatsConverterTest
For adding package 'Microsoft.Owin.Security.3.0.1' to project 'StatsConverterTest' that targets 'net45'.
For adding package 'Microsoft.Owin.Security.3.0.1' to project 'StatsConverterTest' that targets 'net45'.
Package 'Microsoft.Owin.Security.3.0.1' already exists in folder 'D:\SourceCode\GitHub\hdt-plugin-statsconverter\StatsConverter\packages'
Added reference 'Microsoft.Owin.Security' to project 'StatsConverterTest'.
Added package 'Microsoft.Owin.Security.3.0.1' to 'packages.config'
Successfully installed 'Microsoft.Owin.Security 3.0.1' to StatsConverterTest
========== Finished ==========

 

 

I have updated the solution,and use Tools-->NuGet Package Manager-->Manage NuGet Packages for solution... in VS2015
hdt-plugin-statsconverter/StatsConverter/packages (master)
$ ls
CsvHelper.2.13.0.0 MahApps.Metro.1.1.2.0 Newtonsoft.Json.6.0.8

NuGet download the references automatically,reference path in project is not correct.

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(394)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2014-12-02 TeeChart.Direct2D.dll的使用
点击右上角即可分享
微信分享提示