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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:09:25+00:00 2026-06-09T19:09:25+00:00

I have a C# project with two namespaces. A GUI ( Stoff3GUI as namespace)

  • 0

I have a C# project with two namespaces. A GUI (Stoff3GUI as namespace) with the GUI xaml and .cs files, marked as starting object and a Library (Stoff3Lib as namespace) with all the classes doing the actual work.

Now, when I compile my code, I will receive a .exe file Stoff3GUI.exe and a .dll Stoff3Lib.dll. In Visual Studio, both namespaces are part of the same Project.

How can I compile the classes from the Stoff3Lib into the .exe file without producing a separated .dll file?

Edit:

Changed the xxx to my project name Stoff3 for better understanding.

  • 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-09T19:09:26+00:00Added an answer on June 9, 2026 at 7:09 pm

    If both namespaces are part of the same project, you should already only end up getting a single assembly.

    This can differ with web project setups (various different flavours of web projects create assemblies in times and manners I’ve never understood) but for standalone executable projects, it really is “one project produces one assembly” in all cases as far as I’m aware. Double-check that you really only have one project – for example, you shouldn’t have any references in the project to an xxxLib assembly.

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

Sidebar

Related Questions

I have a C# project with two namespaces in one solution. I've documented all
I have a project and two files in the project are named as query-structures.h
I have a project with two namespaces, Interfaces, and Services. Each service implements its
I have a vb.net 3.5 class library project that needs to reference two assemblies
I have a project in C# where there are two namespaces defined in seperate
I have two DLL files that have the same namespace but they have different
I have two project, one which generates some artifacts from a WSDL file using
I have a project in two parts: a Silverlight front end and a WCF
I have a project with two localizations add. English and Spanish. My app has
Suppose my solution have two project: myApp: silverlight application project: the default application App

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.