ubisoft / Sharpmake

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Apache License 2.0
927 stars 171 forks source link

Avoid duplication of targets in Solution and Project class #300

Closed dsmtE closed 11 months ago

dsmtE commented 12 months ago

Hello,

I'm working on a project with several platforms (NX, x64, Scarlett, Prospero, ...). I need to have multiples targets (with different configuration for each platform).

But, I don't really understand why I should duplicate my targets in my project and solution class. Why, just by adding targets in my project class and add conf.AddProject<myProjectClass> in my Solution class, my solution isn't generated at all ?

In my main function, I have something like that : arguments.Generate<mySolutionClass>();

Thanks in advance, Enguerrand DE SMET (Gameplay programmer at Ubisoft on Just Dance)