Assistance Resolving Errors

V. Shane Curtis 20 Reputation points
2025-05-24T00:10:09.62+00:00

Hello,

I've run into an odd situation and I'm hoping that someone can help me figure out what is going on. I have two VB.Net Class library projects. Individually they both compile without any errors. When I try to integrate the two projects together I get a series of errors that don't make any sense. The error message is Severity Code Description Project File Line Suppression State Details

Error (active) BC30909 'Capabilities' cannot expose type 'NativeTypes.DeviceCapabilityFlags' outside the project through class 'Device'. System Information C:\Users\V. Shane Curtis\Desktop\System Information\Device.vb 203

There are several more error messages like this one. They all seem to reference various Enums used by the program.

I do not understand how two separate projects that compile successfully can produce errors when they are combined. In all cases it does not appear to be a scope problem. The Enums are all defined as Public and the property procedures are defined as Public.

I am at a lose as to what could be causing these errors. I would appreciate any assistance you can provide.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,879 questions
{count} votes

Accepted answer
  1. Saideep Anchuri 8,320 Reputation points Microsoft External Staff Moderator
    2025-05-29T00:32:18.2366667+00:00

    Hi V. Shane Curtis

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Ask: Assistance Resolving Errors

    Solution: The issue is resolved. That you figured it out. That enums and structures were in a module. Once you put them in a code file the errors disappeared.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

     

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank You.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.