I don't understand the bin folders in C#.Net solutions

Posted on 2010-03-24
Medium Priority
Last Modified: 2013-12-17
I normally have only one project in my solutions.  Recently, I started a project which was to be a dll.  It resides in a folder c:\clients\Client_name\RMAProcessing (this is where the classes, the sln, suo, and project files are).  The end result is a dll called RMAProcessing.dll.

In order to test the dll, I wanted to add a project to my solution to produce TestDll.exe.  it resides in c:\clients\Client_name\TestDll (this is where the classes and project file are, but, of course, no sln or suo file).

After compiling the solution, I am confused re: the dll.

In c:\clients|Client_name\RmaProcessing\bin\release, the dll is 823 kb
In c:\clients\Client_name\TestDll\bin\release, the dll is 908 kb

Both were created at the same time.

Which version is my deliverable dll?

Question by:g_johnson

Accepted Solution

robbert1979 earned 1600 total points
ID: 28470906
I suggest to throw them both away (the dll files) and recompile your dll project and import the reference in your test application.

Assisted Solution

rg20 earned 200 total points
ID: 28471020
You must have created a class to test you RMA function, this created the 2nd dll.
Your project dll is the same name as your project name.

I would make sure you don't have any ties between the 2 or that you deploy them together if you need them.

This would happen if you have 2 projects in your solution

Assisted Solution

Tribmos earned 200 total points
ID: 28473946
Many of my helper DLLs I keep as a seperate project;  I then manually move them to a "dllfolder" under the desired project which is linked into the project.

I adopted this model so that the parent DLL project is more under lock-and-key in safe source.
Also since its part of the file/folders of the desired project someone new can open the project from safesource and not need anything seperate.  If they need changes to said DLL they have to go through the revision process.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The PowerShell Core 6.0 of .NET release is just the beginning. The upcoming PowerShell Core 6.1 would have artificial intelligence and internet of things capabilities. So many things to look forward to in the upcoming release.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question