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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:28:11+00:00 2026-05-19T23:28:11+00:00

I’m using Visual Studio 2008 and would like to create a sort of container

  • 0

I’m using Visual Studio 2008 and would like to create a sort of container project that holds a number of DLL’s that must be installed with a solution. I want them to be in a separate project so that they can be easily attached to a solution as a group.

I created an empty project call TEST, added my DLL’s to it with a Build Action of “Content”, and set them to “Copy Always”. That all works exactly as I want. The problem is that if I set the TEST project Output Type to “Console Application” or “Windows Application” that it won’t build because there’s no entry point. If I set the Output Type to “Class Library”, it builds but I end up with an extra TEST.DLL file that I don’t really want.

Is there anyway to sort of set the Output Type to “none”? I want the build actions to take place (so my DLL’s get copied) but I don’t want the dummy class assembly created. Any ideas?

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-05-19T23:28:12+00:00Added an answer on May 19, 2026 at 11:28 pm

    Assumptions for the following step-by-step guide:

    Let’s assume that you have a solution with two projects:

    • Main: your main (start-up) project.
    • BundledDLLs: a library project which contains the .dlls that should end up in the main project’s output directory.

    Step-by-step guide:

    The easiest way to achieve your goal inside Visual Studio is probably the following:

    1. Add all .dlls to BundledDLLs and set their Copy to output directory to Copy if newer.

      This is done in the Project Explorer and the Properties windows.

    2. Configure BundledDLLs‘s output directory to be identical to Main‘s output directory.

      This can be done in the Build tab of BundledDLL‘s Project Properties page. Enter something like the following in the Output Path textbox:

      ..\Main\bin\Debug
      
    3. Set up BundledDLLs as a dependency of Main.

      Do not add BundledDLLs as a project reference to Main, as you usually might; instead, use the Project Dependencies dialog to . This will tell the build tool that whenever Main is built, BundledDLLs needs to be built first.

      Do this by right-clicking on the Main project node to open the context menu; select Project dependencies… from there. In the now opened dialog, first select Main from the drop-down list; then check BundledDLLs in the project list below. BundledDLLs is now registered as a dependency of Main.

      P.S.: One disadvantage of not having an explicit assembly reference in Main is that some tooling might not recognise the dependency. For example, ClickOnce deployment might not work properly.

    4. Add a post-build event to BundledDLLs that deletes the superfluous BundledDLLs.dll.

      As you said, you don’t want, and don’t need, the dummy output generated when BundledDLLs is built. So add a post-build event that simply deletes this .dll once it’s been created.

      Open the Build events tab in BundledDLLs‘s Project Properties page, and enter something like the following in the post-build textbox:

      DEL "$(TargetDir)\$(TargetName).*"
      

      (In case you wondered: The reason why you didn’t add this project as a project reference to Main earlier is because if you had done so, Main would be looking for BundledDLLs.dll, which it wouldn’t be able to find since you don’t actually want such a file to be generated.)

      P.S.: One disadvantage of adding such a post-build step is that it might interfere with incremental builds. If your project keeps getting recompiled from scratch after this, you might be better off removing the post-build step and living with the extra BundledDLLs.dll in your solution’s output directory.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
In order to apply a triggered animation to all ToolTip s in my app,
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I want use html5's new tag to play a wav file (currently only supported
I want to count how many characters a certain string has in PHP, but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

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.