简体   繁体   中英

Using Entity Framework Core with VSTO

In our Word 2010 application-level VSTO AddIn we want to use EF Core to connect to a database. We followed the following official MSDN article for this purpose. But the article is talking about modifying project.json file that does not exits in a VSTO project. How can we do some tweaking somehow to make EF Core work in a VSTO project - or what are the alternatives ( but still using EF Core )?

I ran into a similar problem when using VS 2017 RC.

VS 2017 RC doesn't create a project.json file any longer so the only way to modify it is to do it through Dependencies - Manage Nuget Packages.

You can just manually add dependencies through the package manager, but make sure you pay close attention to the version numbers.

This does the same thing as editing package.json. I feel like they are giving us less control this way but I would imagine it also protects us from over editing this file.

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM