TadaoYamaokaの開発日記

個人開発しているスマホアプリや将棋AIの開発ネタを中心に書いていきます。

Visual Studioを使わずにNuGetのパッケージを検索する

Microsoft系のプログラミング言語では、NuGetを使用するとパッケージインストールが楽にできる。
しかし、NuGetは基本的にVisual Studioから使うことが前提になっている。
.NET Coreは、Visual Studioを前提としていないため、Visual Studio使わずにNuGetの管理ができるとよい(特に、MacOSLinuxで使う場合)。
プロジェクトへのパッケージの追加は、「dotnet add package」で可能だが、ここのissueを見ると現時点でVisual Studioを使わずにコマンドラインからNuGetのパッケージを検索する方法は提供されていないようだ。

パッケージを検索する方法が他に方法がないか探したところ、「dotnet-search」という.NET Core 2.1に対応したツールが見つかった。
GitHub - billpratt/dotnet-search: Search for Nuget packages using the .NET Core CLI.
これを使えば、MacOSLinuxでも使用できる。

dotnet tool install」を使用してインストールすることで、コマンドラインから「dotnet search」コマンドを使用できるようになる。
dotnet tool installは.NET core グローバル ツールをインストールするコマンド)

インストール
>dotnet tool install --global dotnet-search
使用例
>dotnet search Grpc

結果

Name                    Description                 Authors            Version   Downloads   Verified
_____________________________________________________________________________________________________
Grpc                    Metapackage for gRPC C#     The gRPC Authors   1.22.0    1.60M          *
-----------------------------------------------------------------------------------------------------
Grpc.Core               C# implementation of        The gRPC Authors   1.22.0    3.98M          *
                        gRPC based on native
                        gRPC C-core library.
-----------------------------------------------------------------------------------------------------
Grpc.Auth               gRPC C#                     The gRPC Authors   1.22.0    1.75M          *
                        Authentication
                        Library
-----------------------------------------------------------------------------------------------------
Grpc.Core.Api           gRPC C# Surface API         The gRPC Authors   1.22.0    578.60K        *
-----------------------------------------------------------------------------------------------------
Grpc.Tools              gRPC and Protocol           The gRPC Authors   1.22.0    1.33M          *
                        Buffer compiler for
                        managed C# and
                        native C++ projects.
                         Add this package to
                        a project that
                        contains .proto
                        files to be compiled
                        to code. It contains
                        the compilers,
                        include files and
                        project system
                        integration for gRPC
                        and Protocol buffer
                        service description
                        files necessary to
                        build them on
                        Windows, Linux and
                        MacOS. Managed
                        runtime is supplied
                        separately in the
                        Grpc.Core package.
-----------------------------------------------------------------------------------------------------
Grpc.HealthCheck        gRPC C# Health              The gRPC Authors   1.22.0    185.71K        *
                        Checking (for
                        Grpc.Core)
-----------------------------------------------------------------------------------------------------
Grpc.Reflection         gRPC C# Server              The gRPC Authors   1.22.0    170.65K        *
                        Reflection (for
                        Grpc.Core)
-----------------------------------------------------------------------------------------------------
Grpc.Core.Testing       Miscellaneous code          The gRPC Authors   1.22.0    68.49K         *
                        for testing
                        Grpc.Core
-----------------------------------------------------------------------------------------------------
Grpc.Core.NativeDebug   Debug symbols for           The gRPC Authors   1.22.0    4.35K          *
                        the native library
                        contained in
                        Grpc.Core
-----------------------------------------------------------------------------------------------------
Bond.Grpc.CSharp        This package                Microsoft          8.1.0     18.35K
                        contains bindings
                        for using Bond with
                        gRPC. The
                        Bond-generated gRPC
                        code depends on
                        types in this
                        assembly.
                        Bond is an open
                        source,
                        cross-platform
                        framework for
                        working with
                        schematized data. It
                        supports
                        cross-language
                        serialization/deserialization
                        and powerful generic
                        mechanisms for
                        efficiently
                        manipulating data.
                                 Bond is
                        published on GitHub
                        at
                        https://github.com/Microsoft/bond/
                                   The C#
                        documentation is
                        available at
                        https://microsoft.github.io/bond/manual/bond_cs.html                                            

1 - 10 of 113 results