Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

[Question] .NET enforcing 64bit and 32bit builds

  • 14-01-2010 12:01PM
    #1
    Registered Users, Registered Users 2 Posts: 1,712 ✭✭✭


    Hi Guys,

    I was wondering, currently we are working on both 32bit and 64 bit applications with 10s of dlls which could be updated on a daily/weekly basis on client sites. We are using 64bit server apps with 32bit client apps.

    I was wondering if there was anyway of enforcing a certain app/dll could only be built, say in 64 bit mode?

    Thanks
    NEil


Comments

  • Registered Users, Registered Users 2 Posts: 2,082 ✭✭✭Tobias Greeshman


    What dot net language are you talking about here?

    If you mean c# then you can kind of get a solution going with the precompiler features available. You'll also need to change you're build scripts, etc to pass in the flag if on a 64-bit platform. Unfortunately the C# precompiler is very limited and doesn't posses the same flexibility that the C/C++ one does.
        // ...
    #if !_WIN64
    #error This application can only be built on 64-bit systems
    #endif
       // ...
    

    So with this solution the build would fail on a 32-bit system.


Advertisement