Hi
Its not something that they can reasonably solve without a complete model change, and then I suspect that they would still run into the fundamental problem that Visual Studio itself will not open the same file twice, in the context of two different projects. That's the infamous "This file is open in another project" error.

These problems are just indicative of the fact that this solution is totally ad hoc. There is a way to do target specific programming in an OO language, and it is shared libraries with platform specific code in platform specific libraries. The problem is that Microsoft totally fucked us over by making it so that projects cannot target multiple platforms. Since its impossible to do, people then figure, "Well if I'm fucked anyway, I might as well start doing other things like using partial classes and #if to include platform specific code". This is not sound.
Why would partial classes be problem?
It is just splitting code into  multiple files

 * SomeClass.cs
   common stuff/ base for me in WP7
 * SomeClass.MTch.cs
   MTch specific in MTch project
   SomeClass is linked either with ProjectLinker or manually
 * SomeClass.M4A.cs
   M4A specific in M4A project
 * repeat that for other targeting platforms
     o SL,
     o WF, WPF
       those share the same codebase in BL

Sometimes we split classes into files when working in parallel on the same platform...

I'd like to know (and stop if the reason is good enough for tradeoff) why not to use partial classes. So far haven't found a anything and when I see almost all designers are using partial class concepts
to hide generated code.

ciao

mel


        The MT app can be in the same solution, btw. You just need
        something <https://github.com/jamiebriant/VsMono>to fool VS
        into loading it, and a hacked version of monotouch.dll that
        claims to be .NET 4. Then you can use R# Solution Analysis to
        catch errors as you type: if R# says there are no errors,
        MonoDevelop will compile it on the Mac 99.99% of the time. I
        edit my MT apps on windows.

    I think I'll have to do that (are there step by step instructions
    somewhere?).  My brain hurts trying to learn all the different
    keybindings on the mac despite having hacked as many as possible.
     I use the alt-<firstletter> key mnemonics in windows all the time
    and that plays merry hell on a mac!


More details here: http://blog.binaryfinery.com/pages/monotouch-visual-studio-productivity



    Felix

    _______________________________________________
    Monodroid mailing list
    [email protected] <mailto:[email protected]>

    UNSUBSCRIBE INFORMATION:
    http://lists.ximian.com/mailman/listinfo/monodroid




--

jamie briant

founder | binaryfinery | mobile, social, cloud, apps

www.binaryfinery.com <http://www.binaryfinery.com/> | blog.binaryfinery.com <http://blog.binaryfinery.com/> | about jamie <http://careers.stackoverflow.com/jamiebriant>





_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


--
Miljenko Cvjetko dipl.ing. ET
        Direktor/CEO
        Projektant rjes(enja/Solution Architect 
        Razvojni programer/Senior developer
        Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: [email protected]
w: http://www.holisticware.net

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to