NS2003 Can not substitute for internal type. To substitute for internal type expose your type to DynamicProxyGenAssembly2 via [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
What should happen
No error. After all I can import and use it, this kind-of proves that this works.. Also the tests still execute.
The correction it suggests is also adding InternalsVisibleTo, but I already did that - it just suggests the C# code version.
STR
Have this in your
.csproj
What happens
The issue is you anyway get the error:
What should happen
No error. After all I can import and use it, this kind-of proves that this works.. Also the tests still execute.
The correction it suggests is also adding
InternalsVisibleTo
, but I already did that - it just suggests the C# code version.System
.NET 6