R
R
Ruslan2019-12-17 09:15:25
ASP.NET
Ruslan, 2019-12-17 09:15:25

How to rewrite assembly version in asp.net core like dependentAssembly in asp.net framework?

Hello.
in new asp.net core 3.1 project getting error:
"FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0"
EF 6.2 wants to use it. (which is not Core)
in the project dependencies there is System.Configuration.ConfigurationManager 4.5.0
In the asp.net framework project, I would add a dependentAssembly section to the web.config to force version 4.5.0.0 to be used where someone wants to load another version .
And how to give such an order to the code in asp.net core?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-12-17
@yarosroman

Unfortunately EF is not compatible with .net core. See the compatibility table, netstandard was invented for this. Look for a lib version compatible with netstandard3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question