S
S
Saharman2022-02-09 21:22:19
.NET
Saharman, 2022-02-09 21:22:19

How to replace System.ComponentModel.Composition?

Good afternoon.

I am planning to move a large project from .net framework 4.6.1 to .net core 3.1. First, I decided to update/replace libraries that are not supported in .net core 3.1. For packet analysis I use .net portability analyzer (recommended by Microsoft).
The project uses System.ComponentModel.Composition to dynamically import .dll. Tried updating this package to the maximum version (6.0.0) - still not compatible. Then I tried using System.Composition and Microsoft..Composition - to no avail, although it says that .net standard 2 and .net 6 are supported. How can I replace this package for a successful migration to .net core 3.1.

In addition, I wanted to know if it makes sense to migrate to .net core 3.1, or is it better to immediately migrate to .net 5? is it much more difficult? The move is necessary to support linux and docker.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2022-02-10
@werwolflg

Migrate directly to .net6. .Net core 3.1 is already outdated and migrating to it is a waste of time and effort. To you that on 3.1, that on 6 will migrate equally. Even 6 is easier, since the package you need is already supported.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question