EntityFrameworkCore
# help-with-umbraco
n
I would like to install the package Microsoft.EntityFrameworkCore.Design 8.0.0 in my Umbraco v13.0.2 project, but this is not possile due to dependencies? How can this be achieved / fixed? https://cdn.discordapp.com/attachments/1187124525536649267/1187124525691842630/image.png?ex=6595bede&is=658349de&hm=8fe2518cb2989119a501c40f7ee6a3b8eed96031d057b4c2222455dae01867fb&
a
Hi @Navorski did you resolve the issue and how?
m
@Navorski So the error message accutaly tells you th exact package and version you need to install and to which porect. In this case first install the Microsoft.CodeAnalysis.Commom pacakage version 4.8.0 into the project Christianedal.SITE @A09 If your getting similare issue the package and version number will be stated in the first line of the error.
j
I found that it was a transitive dependency that installed the package in the wrong way, and that updating Microsoft.CodeAnalysis.Common didn't fix it on its own. But if I removed an explicit install of that, and instead installed
Microsoft.CodeAnalysis.CSharp.Workspaces
v4.8.0 explicitly then it worked
a
@Matthew Alexandros and @Jemayn thank you both for your answers. I can confirm that installing the Microsoft.CodeAnalysis.Common package v4.8.0 didn't fix the problem, however, installing Microsoft.CodeAnalysis.CSharp.Workspaces v4.8.0 worked for me as you @Jemayn mentioned. Just tested on Umbraco 13.1.0. and want to ask why is this happening and if is it something that should be raised as an issue on Umbraco CMS Git Hub?
j
Raising an issue just for visibility may be an idea so others running into the same can find it more easily. But it's not an issue within Umbraco specifically as far as I could see, more that some dependencies of Umbraco and others from the Micorsoft.FrameworkCore.Design package are strict in their own dependencies. Not something Umbraco can necessarily do a lot about
a
Thank you and feel free to raise an issue to help others in the same situation, you saved me time :).
j
@Sebastiaan I've seen several people on different platforms running into this issue, do you want me to raise an issue on the CMS tracker even if it's not necessarily within Umbraco the problem lies? I can write you a more detailed explanation of the problem if you want 🙂
s
I haven't looked into it, but might be good to document with the EF documentation?
j
Good point - if nothing else it gives a place to link to 🙂 Will submit a PR later today
50 Views