You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a first migration using the CLI to a simple application, and the requisite folder and files were created. When attempting to execute the migration, it failed with the message:
On examination of the relevant files, I see this at the top:
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using ;
namespace EFCoreDemo.Migrations
Removing the empty using directives results in other errors.
Steps to reproduce
Code to produce the console application:
> mkdir EFCoreDemo
> cd EFCoreDemo
> dotnet new
> dotnet add package Microsoft.EntityFrameworkCore.SqlServer
> dotnet add package --version 1.1.0-msbuild3-final Microsoft.EntityFrameworkCore.Tools
> dotnet restore
> dotnet run
Full csproj file including amendment as per #7358:
EF Core version: (found in project.json or packages.config)
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Operating system: Win7
IDE: VS Code and CLI
.NET Command Line Tools Version: 1.0.0-rc3-004530
The text was updated successfully, but these errors were encountered:
I added a first migration using the CLI to a simple application, and the requisite folder and files were created. When attempting to execute the migration, it failed with the message:
On examination of the relevant files, I see this at the top:
Removing the empty
using
directives results in other errors.Steps to reproduce
Code to produce the console application:
Full csproj file including amendment as per #7358:
Model.cs:
Command to create the migration:
Resulting migration files in full:
20170216142553_CreateDatabase.cs
20170216142553_CreateDatabase.Designer.cs
EFCoreDemoContextModelSnapshot.cs
Further technical details
EF Core version: (found in project.json or packages.config)
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Operating system: Win7
IDE: VS Code and CLI
.NET Command Line Tools Version: 1.0.0-rc3-004530
The text was updated successfully, but these errors were encountered: