Introduction into NuGet
-
Upload
ciklum -
Category
Technology
-
view
1.803 -
download
0
description
Transcript of Introduction into NuGet
![Page 1: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/1.jpg)
ВВЕДЕНИЕ В NUGET
Виталий Домников
Ciklum
![Page 2: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/2.jpg)
Содержание
• Введение
• Для чего всё это нужно?!
• Интеграция с VisualStudio– GUI
– CLI
• Репозитории
• Создание теплых ламповых своих пакетов
• Ссылки и материалы
![Page 3: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/3.jpg)
Что такое NuGetи с чем его едят?
![Page 4: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/4.jpg)
Зачем оно мне надо?
![Page 5: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/5.jpg)
• Поиск библиотеки• Загрузка библиотеки• Проверка хэш-значения• Распаковка файлов• Добавление ссылок на сборки• Модификацию конфигурационных файлов
Олд скул стайл
![Page 6: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/6.jpg)
• Установка NuGet1
• GUI2
• CLI3
Интеграция с VisualStudio
![Page 7: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/7.jpg)
Установка NuGet
• Asp.Net MVC 3.0
• Эти ваши интернеты– http://www.nuget.org/
– http://nuget.codeplex.com/releases
• Extension manager– VS/Tools/ Extension Manager…
• NuGet Package Manager
![Page 8: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/8.jpg)
Добавление пакета
![Page 9: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/9.jpg)
Выбор пакета
![Page 10: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/10.jpg)
Power Shell – наше всё ;)VS/Tools/Library Package Manager/Package Manager Console
![Page 11: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/11.jpg)
Комманды NuGet
• Get-Package
• Install-Package
• Uninstall-Package
• Update-Package
• Get-Project
• Open-PackagePage
![Page 12: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/12.jpg)
Репозитории
• Директория на диске
• Network share
• OData feed
![Page 13: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/13.jpg)
Очумелые ручки
• nupackage
• .nuspec
• NuGet pack
• Deploy
![Page 14: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/14.jpg)
Структура директорий
• content
• lib– .NetFramework 1.1
– .NetFramework 2.0
– .NetFramework 4.0
– Silverlight 3.0
– Silverlight 4.0
• tools
![Page 15: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/15.jpg)
nuspec
![Page 16: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/16.jpg)
И тут чистая магия
• NuGet.exe pack Ciklum.MobileApi.nuspec
• Copy to repository
![Page 17: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/17.jpg)
Выводы
• NuGet рулит!
![Page 18: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/18.jpg)
Ресурсы
• http://nuget.codeplex.com/
• http://nuget.org/
• http://google.com.ua/search?q=NuGet
• @dotcypress
![Page 19: Introduction into NuGet](https://reader033.fdocuments.us/reader033/viewer/2022060202/559bf3a11a28abfa5a8b460c/html5/thumbnails/19.jpg)