.NET Blog


LINQ(Language Integrated Query)

  • IEnumerable インタフェースを実装している型ならば利用できる
  • using System.Linq; を指定

テスト

xUnit

NUnit

Yeoman

インストールからプロジェクト作成・実行

  • インストール
    $ npm install -g yo bower
    $ npm install -g generator-aspnet 
    • yo ... Yeoman
    • bower ... フロントエンドのライブラリ管理
    • generator-aspnet ... ASP.NET Core 用ジェネレータ
  • 空のASP.NET Core Web Applicationプロジェクトを作成
    $ yo aspnet
    
    $ cd [プロジェクトのフォルダ]
    $ dotnet restore
    $ dotnet run
  • Visual Studio Code を起動
    $ code .
    • これで起動しない場合は Visual Studio Code の画面で「シェルコマンド:PATH 内に 'code' コマンドをインストールします」を実行
  • yo aspnet:app [options] [<type>] [<applicationName>] [<ui>]
    • type
      • web for Empty Web Application
      • console for Console Application
      • mvc for Web Application
      • mvcbasic for Web Application Basic
      • webapi for Web API Application
      • nancy for Nancy ASP.NET Application
      • classlib for Class Library
      • mstest MSTest Test project (MSTest)
      • xunit xUnit Test project (xUnit.net)
    • ui
      • bootstrap for Bootstrap (this is the default and does not have to be specified explicitly)
      • semantic for Semantic UI

Tips


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-04-05 (月) 16:06:33 (1111d)