Giter Site home page Giter Site logo

Comments (10)

ErikEJ avatar ErikEJ commented on May 22, 2024

Is your project a Shared library project? Never done any testing with that, so very surprised if it should work

from efcorepowertools.

jmoleary avatar jmoleary commented on May 22, 2024

It is indeed. Sorry, I didn't realize that had not been tested. Is there some other project type I can/should use that is not an application?

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 22, 2024

C# class library

from efcorepowertools.

jmoleary avatar jmoleary commented on May 22, 2024

OK, my apologies, I misspoke. The project is a C# class library, not a shared library. I have never created or worked on C# shared library I (mistakenly) assumed that in C# they were the same thing.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 22, 2024

Can you share your project, and I can investigate? You can email me privately?

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 22, 2024

Could you make sure Visual Studio is up to date - the version number you are reporting looks old or wrong

from efcorepowertools.

jmoleary avatar jmoleary commented on May 22, 2024

My Visual Studio Version is the very latest Community 15.7.3 (what I erroneously typed above was.NET Framework version - sorry for a second mistake)

TestEFPowerTools.zip

Unfortunately I cannot seem locate an email address for you in your contact (I'm sure I'm missing it) so I have attached the project here as a ZIP file. It's has a simple DBContext that exposes one DbSet of a class called "User"

  1. It uses a SqlServer localDB instance I set up called TESTEFCOREDB
  2. It uses a datbase named "TestEFCorePowerTools"
  3. I deleted the packages subdirectory to keep the size reasonable. You can restore them from the Package Manager Console

Again, with this test project I can do an "add-migration init" and "update-database" no problems. I can also build it with no problems. It's just that when I choose "View DbContext Model DDL/SQL" from the EFCore Power Tools context menu that I get there error about the wrong version of ValueTuple

from efcorepowertools.

jmoleary avatar jmoleary commented on May 22, 2024

I should also say you may email me directly at [email protected]

from efcorepowertools.

ErikEJ avatar ErikEJ commented on May 22, 2024

This works for me in the latest daily build, and was a bug - thanks for reporting this

from efcorepowertools.

jvitor83 avatar jvitor83 commented on May 22, 2024

@ErikEJ i'm having the same issue.

System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. O sistema não pode encontrar o arquivo especificado.
File name: 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitForeignKey(ModelBuilder modelBuilder, DatabaseForeignKey foreignKey)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitForeignKeys(ModelBuilder modelBuilder, IList`1 foreignKeys)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitDatabaseModel(ModelBuilder modelBuilder, DatabaseModel databaseModel)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.Create(DatabaseModel databaseModel, Boolean useDatabaseNames)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, IEnumerable`1 tables, IEnumerable`1 schemas, String namespace, String language, String contextDir, String contextName, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions)
   at ReverseEngineer20.EfCoreReverseEngineer.GenerateFiles(ReverseEngineerOptions reverseEngineerOptions)
   at EFCorePowerTools.Handlers.ReverseEngineerHandler.<ReverseEngineerCodeFirst>d__2.MoveNext() in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Handlers\ReverseEngineerHandler.cs:line 153

And i'm using the latest build 1.0.651 and Visual Studio 2017 Version 15.8.2.

What solve @jmoleary problem?

from efcorepowertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.