PC Review


Reply
Thread Tools Rate Thread

How to create two executables for a one project?

 
 
Anna Warner
Guest
Posts: n/a
 
      14th Jan 2012
Please advise how to do it.
 
Reply With Quote
 
 
 
 
MiB
Guest
Posts: n/a
 
      14th Jan 2012
On Jan 14, 3:28*am, Anna Warner <awarner....@gmail.com> wrote:
> Please advise how to do it.


I believe the best approach is to split the project into one for every
excutable you want to create, maybe plus one or more extra library
projects for code shared between different executables. Put all these
projects into a common solution.
This should be far easier than fiddling around with custom build
scripts.

Regards,

MiB.
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      15th Jan 2012
On 1/13/2012 9:28 PM, Anna Warner wrote:
#How to create two executables for a one project?
> Please advise how to do it.


I don't think you can do it via VS, so you will
need to edit the CSPROJ file manually.

The msbuild format is well documented, so it should
not be that difficult.

But I don't think you should do it.

Have you ever wondered why VS create both a
"solution" and a "project"?

This is the recommended solution for what
you are trying to achieve.

You create 1 solution with 3 projects:
- one that generates a DLL with the common code
- two that each generat an EXE with the specific
code

This enables you to do everything in VS without
messing around with the CSPROJ file.

It is also more convenient in most cases
to have the common code in a separate
deployable and updatable DLL than
statically linked into each EXE.

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 PM.