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 8037055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:48:42+00:00 2026-06-05T02:48:42+00:00

I am working on Visual Studio 2008 edition. I need to build class library

  • 0

I am working on Visual Studio 2008 edition. I need to build “class library” dll through “Console” commands. A simple command to do so would be:

"csc /target:library /out:File.DLL File.cs"

which creates File.dll successfully.

But what should be done to include a dll file as input? Eg: Final.dll needs a C# file named Final.cs and File.dll? I tried out the below command but unsuccessful

"csc /target:library /out:Final.DLL File.dll File.cs"

What is the exact way to do so?

In the same manner i tried adding project references in the command:

csc /target:library /out:Final.DLL /r:First.dll /r:../Func\Func.csproj Final.cs

But it tells the Func.csproj could not be opened and is corrupt. What could be the reason?

  • 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-05T02:48:44+00:00Added an answer on June 5, 2026 at 2:48 am

    If you want to add a reference (most probably), you can add assembly references by using this option:

    /reference:File.dll   (or /r:File.dll)
    

    You can use it like the other options:

    csc /target:library /r:File.dll /out:Final.dll File.cs

    Remember you’ll also need to distribute that Dll with your library.

    Note: type csc /? to get a full list of all flags and help about them. It’s a common command for many console applications like csc on windows.

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

Sidebar

Related Questions

We are planning to buy the Visual Studio Professional 2008 Edition to build some
I'm working with Visual studio 2008. I have a form inherited from DockContent class
I'm now working on RC Windows 7 and installed Visual Studio 2008 Professional edition. But I
I am working in Visual studio-2008(VSS). Now i need to get file, which are
I am working with an n-tiered architecture in Visual Studio 2008 (Developer Edition), and
Now , I am working with Visual Studio 2008. I want to Create Class
Working in Visual Studio 2008. I'm trying to draw on a PNG image and
I'm working in Visual Studio 2008 and I would like for Edit > Outlining
I'm working in Visual Studio 2008 using c#. Let's say I have 2 xsd
I'm working with visual studio 2008 developing software for windows CE 6.0, compact framework.

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.