Hi Guys,

I’ve run into a series of errors and I can’t figure out what’s causing them. The situation is this, I have two projects. Both projects compile fine separately. When I combine the files together I get a series of errors that don’t make sense. The error is: ‘Capabilities’ cannot expose type ‘NativeTypes.DeviceCapabilityFlags’ outside the project through class ‘Device’.

Here’s the offending code: Public ReadOnly Property Capabilities() As DeviceCapabilityFlags Get Try Return DirectCast(GetIntegerProperty(DevicePropertyID.Capabilities), DeviceCapabilityFlags) Catch Return Nothing End Try End Get End Property

    Public Enum DeviceCapabilityFlags As Integer
        LOCKSUPPORTED = &H1
        EJECTSUPPORTED = &H2
        REMOVABLE = &H4
        DOCKDEVICE = &H8
        UNIQUEID = &H10
        SILENTINSTALL = &H20
        RAWDEVICEOK = &H40
        SURPRISEREMOVALOK = &H80
        HARDWAREDISABLED = &H100
        NONDYNAMIC = &H200
    End Enum

There are others like this. Both the property and the enum are declared as public, so I’m at a lose as to what is causing the error. Any help you can provide is appreciated

1 Spice up