Skip to content
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

Tools: Finding runtime 1.2 compatible tools? #7492

Closed
ErikEJ opened this issue Jan 26, 2017 · 3 comments
Closed

Tools: Finding runtime 1.2 compatible tools? #7492

ErikEJ opened this issue Jan 26, 2017 · 3 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@ErikEJ
Copy link
Contributor

ErikEJ commented Jan 26, 2017

When installing the EF PMC tools, I am unable to find a Tools Nuget package that works with 1.2-preview.

I was expecting 1.2 compatible tools to be available on the aspnetcore-dev feed...

Get this error:

PM> Add-Migration MyFirstMigration
System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.RelationalFullAnnotationNames' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=1.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpSnapshotGenerator.Generate(String builderName, IModel model, IndentedStringBuilder stringBuilder)
at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGenerator.GenerateMetadata(String migrationNamespace, Type contextType, String migrationName, String migrationId, IModel targetModel)
at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.ScaffoldMigration(String migrationName, String rootNamespace, String subNamespace)
at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.RelationalFullAnnotationNames' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=1.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Steps to reproduce

Following the instructions here: https://github.com/ErikEJ/EntityFramework.SqlServerCompact/wiki/Using-EF-Core-with-SQL-Server-Compact-in-Traditional-.NET-Applications-(daily-builds)

Further technical details

EF Core version: 1.2.0-preview1-23167
Database Provider: SqlServerCompact4
Operating system: Win 10
IDE: Visual Studio 2015 Update 3

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Jan 26, 2017

Fixed by running this before installing the Tools package:

Install-Package Microsoft.EntityFrameworkCore.Design -Pre

Is that the best approach?

@ErikEJ ErikEJ closed this as completed Jan 26, 2017
@ErikEJ ErikEJ reopened this Jan 26, 2017
@bricelam
Copy link
Contributor

Yep. We need to update the NuGet package dependency to 1.2.0. It is currently hard coded to 1.1.0 because of the custom way we have to pack.

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Jan 26, 2017

Too bad... But thanks!

@ErikEJ ErikEJ closed this as completed Jan 26, 2017
@bricelam bricelam added this to the 2.0.0 milestone Feb 21, 2017
@bricelam bricelam self-assigned this Feb 21, 2017
@bricelam bricelam added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Feb 27, 2017
@ajcvickers ajcvickers changed the title Tools: Finding runtime 1.2 compatible tools? Infrastructure: Finding runtime 1.2 compatible tools? May 9, 2017
@ajcvickers ajcvickers changed the title Infrastructure: Finding runtime 1.2 compatible tools? Tools: Finding runtime 1.2 compatible tools? May 9, 2017
@divega divega added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. and removed closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. labels May 10, 2017
@ajcvickers ajcvickers modified the milestones: 2.0.0-preview1, 2.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

4 participants