Where should Project.json tools go now?

I am following the Step by Step Principles of the Entity Framework . At some point he speaks

find the tool section and add the Microsoft.EntityFrameworkCore.Tools.DotNet Package as shown below.

project.json:

"tools": {
   "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final",
   "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
   "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
 },

As I understand it, project.json is gone now. So where should I add this value? Project file?

+4
source share
2 answers

In the project.json/ format, xprojit is at the top level at project.json: https://docs.microsoft.com/en-us/dotnet/articles/core/tools/project-json#tools

csproj ​​DotNetCliToolReference. , ; dotnet-migrate.

:

<Project ...>
  <Import .../>
  <PropertyGroup .../>
  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet">
      <Version>1.0.0</Version>
    </DotNetCliToolReference>
  </ItemGroup>
</Project>

dotnet-migrate .

+6

Entity Framework Core 1.1:

.NET Core Tools MSBuild Alpha Visual Studio 2017 RC, . .NET Core Tools MSBuild .

Visual Studio (Add-Migration, Update-Database, Scaffold-DbContext, ..). CLI.NET Core (dotnet ef) .NET Core Tools MSBuild Alpha.

: .

0

Source: https://habr.com/ru/post/1665244/


All Articles