How to create two asemblies in one project

  • Thread starter Thread starter Advait Mohan Raut
  • Start date Start date
A

Advait Mohan Raut

Hello friends,
I want to create two assemblies in single project -or-
one executable and one assembly in single project.
So that I can isolate testing information from actual code.
I am using VC# 2005 Express Edition.
Can anyone please tell me how to do this ?

Advait
 
Advit,

A project is a DLL or Exe however a Solution can have different DLL's (and
maximum one Exe)

Cor
 
I'm not aware of a maximum of one exe per solution. This is normally true,
however there was a case where I created multiple helper exe's in one
solution.
 
Family Tree Mike said:
I'm not aware of a maximum of one exe per solution. This is normally true,
however there was a case where I created multiple helper exe's in one
solution.

I wouldn't even say it's "normally" true. I've worked on plenty of
solutions with multiple executables.
 
Advait Mohan Raut said:
Hello friends,
I want to create two assemblies in single project -or-
one executable and one assembly in single project.
So that I can isolate testing information from actual code.
I am using VC# 2005 Express Edition.
Can anyone please tell me how to do this ?

Separate your production code from your test code by putting them in
different assemblies. If you need to test members marked "internals"
you should look into InternalsVisibleToAttribute.
 
Separate your production code from your test code by putting them in
different assemblies. If you need to test members marked "internals"
you should look into InternalsVisibleToAttribute.

Actuly I want to do that only as Jon specified.
I have not included any *internal* specifier.
So I was asking for how to create two assemblies under the single
project of VS C# 2005 Express Ed.
 
Advait Mohan Raut said:
Actuly I want to do that only as Jon specified.
I have not included any *internal* specifier.

It's the default for top-level classes anyway though.
So I was asking for how to create two assemblies under the single
project of VS C# 2005 Express Ed.

You can't create two assemblies from one project, but you can just
create two projects. Make the test project refer to the production
project.
 
Back
Top