How to create two asemblies in one project

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
 
C

Cor Ligthert[MVP]

Advit,

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

Cor
 
F

Family Tree Mike

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.
 
J

Jon Skeet [C# MVP]

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.
 
J

Jon Skeet [C# MVP]

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.
 
A

Advait Mohan Raut

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.
 
J

Jon Skeet [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top