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

  • Home
  • SEARCH
  • 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 8067059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:10:10+00:00 2026-06-05T12:10:10+00:00

For a visual C# project in microsoft visual studio IDE, what is the configuration

  • 0

For a visual C# project in microsoft visual studio IDE, what is the configuration settings to be used, so that it could generate both exe and dll outputs?

  • 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-05T12:10:11+00:00Added an answer on June 5, 2026 at 12:10 pm

    As Darin points out in comments, there is no setting to do this. However, you can achieve it via build events and batch scripts

    1. Create a pre-build event on the dll project to call a batch script
    2. In the batch, copy the csproj for the dll project
      • Modify the XML content of the copied csproj to change the output type to exe
      • Modify the output directory of the copied csproj
    3. Run this in Visual Studio

    You will now get a copy of your csproj generated which outputs to exe. You can add the second csproj into visual studio and every time you build, it should synchronize the exe csproj and build it.

    Some tips:

    • You can modify csproj’s using Powershell. See here
    • You may want to modify all cs files in the copied csproj to be links
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The command C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe C:\PATH\TO\file.txt opens a new instance of
In the visual studio project settings you can choose a strong name key file
I have made a dll in Microsoft Visual Studio 2005. Then i am trying
I have a C++ project in Microsoft Visual C++, and I have included windows.h.
i like to setup for my project i did my project in Microsoft visual
In a Visual Studio project (C#), I attempted to perform a rename of a
When exporting a Visual Studio project to a Template (File/Export Template...) I get the
I have a Visual Studio project which uses nmake to call a Python file
We have a main visual studio project stored in SVN using the standard trunk/branches/tags
I recently converted a multi-project Visual Studio solution to use .dlls instead of .libs

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.