More Related Content Similar to NuGet でゲット! Visual Studio パッケージ マネージャ―概要 (20) More from Akira Inoue (20) NuGet でゲット! Visual Studio パッケージ マネージャ―概要2. NuGet でゲット!
Visual Studio パッケージ マネージャ―概要
日本マイクロソフト株式会社
デベロッパー & プラットフォーム統括本部
エバンジェリスト
井上 章 (いのうえ あきら)
blogs.msdn.com/chack : twitter.com/chack411
5. NuGet でゲット!
http://nuget.org/
NuGet (ぬげっと / にゅーげっと) とは ...
ヘルパーやオープンソース ライブラリのパッケージ公開と
管理の仕組み
Visual Studio や WebMatrix のパッケージ マネージャ機能
GUI / コンソール の 2 通りの利用方法
NuGet ギャラリーを利用したヘルパーの公開
9. VS 拡張機能
拡張機能 Visual Studio
マネージャー ギャラリー
14. Razor で、かんたん記述!
App_Code フォルダ にファイルを作成
ファイル名: <ヘルパー名>.cshtml (または .vbhtml )
@helper でヘルパーを定義 (@functions で内部関数の定義も可能)
MyHelper.cshtml
@helper Memo(string content) {
<div class="memo">
<p><strong>メモ:</strong>@content</p>
</div>
}
使用例
<html>
@MyHelper.Memo("ヘルパーを作りました!")
</html>
15. NuGet ギャラリーへの登録と公開
カスタム パッケージの登録方法
1. NuGet ギャラリー サイトでユーザー登録
2. NuGet Package Explorer または NuGet.exe をダウンロード
CodePlex - NuGet プロジェクト : http://nuget.codeplex.com/releases
3. 作成したヘルパーに必要なファイル群をパッケージング (.nupkg)
4. NuGet ギャラリーの My Account ページから Access Key を入手
5. 上記ツールで Access Key を使って NuGet ギャラリーへ発行
17. ローカル フゖードとリモート フゖード
ローカル フゖード (フゔル共有) によるパッケージ共有
独自 NuGet サーバーによるパッケージ共有
参考: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds
18. toAllWebCreative - Web の構築に関わるすべての人々へ
http://www.microsoft.com/japan/web/
Microsoft Web Platform: WebMatrix おすすめ学習コンテンツ
http://www.microsoft.com/japan/web/webmatrix/learn/
MSDN ASP.NET デベロッパー センター
http://msdn.microsoft.com/ja-jp/asp.net/default.aspx
ASP.NET: The Official Microsoft ASP.NET Site (英語)
http://www.asp.net/
ScottGu's Blog (英語)
http://weblogs.asp.net/scottgu/default.aspx
THE TRUTH IS OUT THERE ~ 井上 章のブログ ~
http://blogs.msdn.com/chack/
19. ご清聴、誠ににありがとうございました!
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.