LoginSignup
1
2

More than 3 years have passed since last update.

.NET Core逆引きメモ

Last updated at Posted at 2018-07-10

必要に迫られた.NET Coreの逆引きメモです。

dotnet tool install~\5.0.100\NuGet.targets(131,5): errorが出る場合の対処方法

--ignore-failed-sourcesのオプションを付ける。

dotnet tool install -g TestTool-3.1 --ignore-failed-sources

dotnet-aspnet-codegenerator no executable found

aspnet-codegeneratorを実行するとそんなコマンド有りません。とエラーが出るのでメモ。

  1. 実行したいプロジェクトの.csprojをテキストエディタで開く。
  2. *.csprojDotNetCliToolReferenceを追記
  3. Version="x.x.x"の部分はパッケージマネージャコンソールnuget list Microsoft.VisualStudio.Web.CodeGeneration.Toolsを実行して確認。
*.csproj
<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="x.x.x" />
</ItemGroup>

参考
.ASP.NET Core MVC アプリへのモデルの追加

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2