L
L
LinuxGod2021-11-09 13:23:23
.NET
LinuxGod, 2021-11-09 13:23:23

How to fix error CS0122 is not available due to its protection level?

618a4b71c985b781641038.jpeg
Good afternoon, please tell me, I decided to merge two c# projects (the language version is the same and the compiler is the same). In one project, such an error is not observed, and in another it arises for unknown reasons, what is the reason and how to fix it - after all, in one project the error does not pop up?! Thanks in advance.

Language version 9.0
.NET version 5.0.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-11-09
@LinuxGod

StrongReference must be declared public or InternalsVisibleTo must be set.
Same with fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question