-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF Core Upgrade 1.0.1 to 1.1.0 does not support net4.6.1 / Tooling issue #7083
Comments
Can you change:
to (note the removal of
|
@rowanmiller changed the framework (was I always doing it wrong or have they changed it?) anyway I'm now getting the following error
project.json file looks like`{ "buildOptions": { "dependencies": { "tools": { "frameworks": { I have also tried -
this error makes sense.
On the plus side I was able to downgrade back to 1.0.0-preview2 after upgrading to 1.1.0-preview4 without an issue :) |
@TPJ11 having the periods was always wrong, but it looks like some of the project tooling was smart enough to "know what you meant" 😄. The BTW you can remove Closing as the issue you are hitting how is already tracked elsewhere. |
Steps to reproduce
DbContext
`
public class TestDbContext : DbContext
{
public DbSet TestModels { get; set; }
`
Model
` public class TestModel
{
[Key]
public int Id { get; private set; }
project.json EF 1.0.1
'{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
}
},
"tools": {
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"
},
"frameworks": {
"net4.6.1": {}
}
}
'
project.json EF 1.1.0
'{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0",
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.1.0-preview4-final",
"type": "build"
}
},
"tools": {
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.1.0-preview4"
},
"frameworks": {
"net4.6.1": {}
}
}
'
Work around
The biggest issue I have is that I now cant downgrade the project as i get the same error and have to recreate the project (pain in the butt).
The issue
Unable to run EF commands / EF does not work on the new EF 1.1.0 when upgrading from 1.0.1 / Tools does not work not sure which...
Further technical details
EF Core version: .NET 4.6.1
Operating system: Windows 8.1
Visual Studio version: VS 2015
The text was updated successfully, but these errors were encountered: