科学の箱

科学・IT・登山の話題

IT

NuGetをVisual Studioなしで使う方法

投稿日:

いくつかのアプリケーションはNuGet経由でインストールされる。NuGetはVisual Studioと相性がよいために、MicrosoftのサイトではViusual Studioのコンポーネントとして提供されている。

NuGet Package Manager extension – Visual Studio Gallery – Microsoft

しかし現在の開発環境がVisual Studio Expressであるために、対応していない。

ではVisual StudioをインストールしていないマシンではNuGetは使えないのだろうか。そんなことはない。NuGetはAPIの集合であるために、ツールとして自作することが可能だ。

もちろん一から作成すれば手間がかかるが、すでに単体のExeとしてインターネット上では公開されている。

NuGet.exe Command Line bootstrapper

重要なことはNuGetのサブコマンド、例えばinstallなどは提供されているツールにより異なる。

NuGet.exeでは以下のサブコマンドが実行できる。

$ nuget
NuGet Version: 2.7.40808.167
usage: NuGet <command> [args] [options]
Type 'NuGet help <command>' for help on a specific command.

Available commands:

 config      Gets or sets NuGet config values.
 delete      Deletes a package from the server.
 help (?)    Displays general help information and help information about other commands.
 install     Installs a package using the specified sources. If no sources are specified, all sourc
             es defined in the NuGet configuration file are used. If the configuration file specifi
             es no sources, uses the default NuGet feed.
 list        Displays a list of packages from a given source. If no sources are specified, all sour
             ces defined in %AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sou
             rces, uses the default NuGet feed.
 pack        Creates a NuGet package based on the specified nuspec or project file.
 push        Pushes a package to the server and optionally publishes it.
             NuGet's default configuration is obtained by loading %AppData%\NuGet\NuGet.config, the
             n loading any nuget.config or .nuget\nuget.config starting from root of drive and endi
             ng in current directory.
 restore     Restores NuGet packages.
 setApiKey   Saves an API key for a given server URL. When no URL is provided API key is saved for
             the NuGet gallery.
 sources     Provides the ability to manage list of sources located in %AppData%\NuGet\NuGet.config
 spec        Generates a nuspec for a new package. If this command is run in the same folder as a p
             roject file (.csproj, .vbproj, .fsproj), it will create a tokenized nuspec file.
 update      Update packages to latest available versions. This command also updates NuGet.exe itse
             lf.

For more information, visit http://docs.nuget.org/docs/reference/command-line-reference

メタ情報

inarticle



メタ情報

inarticle



-IT
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

Amazon Work Spaceのトラブルシューティング

AWSトラブルシューティングの基本 まずはAWSのヘルスチェックから。 画面右端にある”Network”をクリックする。[Enabled Advanced Logging]のチ …

no image

Windows Security Updateのスケジュールについて考えてみる

MicrosoftからはWindows Security Updateは毎月第二火曜日に公開される。日本では時差の関係上第2水曜日もしくは第3水曜日となる。 セキュリティ情報リリース スケジュール W …

no image

chefでnot_ifを利用するときのコマンドの戻り値を確認する

Chefでrbenv環境を構築する際に.bash_profileを書き換える。この時にすでに命令が入っていれば書き換えをしたくない。 この動作はnot_if句を導入することで可能だけど、コマンドの戻り …

no image

gitでコードを修正する場合に使ったコマンド

gitにpushしてからソースコードを一部変更したい git remote上での修正 git remote上で直接編集する。これは意味がない。新しいcommitとして取り扱われるだけ。   …

no image

Mahoutで採用されているアルゴリズム

Classifier ロジスティック回帰 ナイーブベイズ ランダムフォレスト クラスタリング K-Means Fuzzy K-Means Canopy レコメンド ユーザーベース アイテムベース NM …

2013年10月
« 9月   11月 »
 123456
78910111213
14151617181920
21222324252627
28293031  

side bar top



アーカイブ

カテゴリー