Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8766951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:40:50+00:00 2026-06-13T16:40:50+00:00

i create a project ClassLibrary1 ,contain a method Class1.Get1(); then create a project ClassLibrary2

  • 0

i create a project ClassLibrary1,contain a method Class1.Get1();
then create a project ClassLibrary2,contain a method Class2.Get2(),and reference ClassLibrary1.dll
then create a project ConsoleApplication1,and reference ClassLibrary2.dll,
i just can call Class2.Get2() from ConsoleApplication1.Program,but
how can i call Class1.Get1() but don’t reference ClassLibrary1.dll
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:40:51+00:00Added an answer on June 13, 2026 at 4:40 pm

    You have to reference ClassLibrary1 from ConsoleApplication1 in order to be able to use it there. You can’t use an assembly (ClassLibrary1) referenced in another assembly (ClassLibrary2).

    To answer your question about calling Class1.Get1() without referencing ClassLibrary1.dll, the easiest thing to do is probably just wrap Class1.Get1() in a method in ClassLibrary2 somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just managed to create a project using Zend_Tool, but I am stuck on
I created a project in zendframework: zf create project dev.gamenomad.com Then, I put this:
I'm reading Reference Guide::Create Your Project . And it's written there: In order to
how to create project for native c++ executable in visual studio 2012. In previous
In ZF you create a project by running this command: zf create project MyProjectName
I'm trying to learn how to use lift. I can create project skeleton by
i create some project but when start App. How to Run this App one
I can't create New Project on my Visual Web Developer 2008 Express with SP1.
I want to create a project that uses source files already on my filesystem,
When i create new project with the name MyNewProject with a single view application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.