By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

How to create two asemblies in one project

P: n/a
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
Jun 29 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Advit,

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

Cor

"Advait Mohan Raut" <ad*********@indiatimes.comschreef in bericht
news:00**********************************@h1g2000p rh.googlegroups.com...
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
Jun 29 '08 #2

P: n/a
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.

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:AF**********************************@microsof t.com...
Advit,

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

Cor

"Advait Mohan Raut" <ad*********@indiatimes.comschreef in bericht
news:00**********************************@h1g2000p rh.googlegroups.com...
>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
Jun 29 '08 #3

P: n/a
Family Tree Mike <Fa************@ThisOldHouse.comwrote:
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.

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com
Jun 29 '08 #4

P: n/a
Advait Mohan Raut <ad*********@indiatimes.comwrote:
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.

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com
Jun 29 '08 #5

P: n/a
On Jun 29, 5:42*pm, Jon Skeet [C# MVP] <sk...@pobox.comwrote:
Advait Mohan Raut <advait_r...@indiatimes.comwrote:
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.

--
Jon Skeet - <sk...@pobox.com>
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.
Jul 1 '08 #6

P: n/a
Advait Mohan Raut <ad*********@indiatimes.comwrote:
* 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.
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.

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com
Jul 1 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.