I have one project IBSampleApp used in two solutions and it’s classes suffer the following compiler error in both.
inaccessible due to it’s protection level
Error in IBClient.cs of IB Execution project in Execution solution:
TickPriceMessage class in IBSampleApp project:
Added InternalsVisibleTo property to AssemblyInfo.cs of IBSampleApp project (recommended by @JamesFaix):
The problem persistes still. How to make TickPriceMessage class available to both solutions?
You have a public constructor on an internal class. With lack of any access modifier, c# defaults to the most restricted for the type which is
internal
for a class like yours.You should declare TickPriceMessage class as
public
, it isinternal
by default.