Skip to content

Add Linux/Mac build script #13861

Closed
Closed

Description

@akoeplinger

A build.sh should be added alongside build.cmd to build corefx on Linux/Mac.

Activity

  1. anaisbetts commented on Nov 12, 2014

    @anaisbetts

    Come correct, use make.

  2. stephentoub commented on Nov 12, 2014

    @stephentoub
    Member

    Thanks. Cross-platform support will be coming in the future.

  3. akoeplinger commented on Nov 12, 2014

    @akoeplinger
    MemberAuthor

    The solutions already build on Mono with xbuild after a few tiny fixes: PR dotnet/corefx#51 (except System.Xml.sln, which throws a few error CS0433: The imported type System.Xml.Linq.XAttribute' is defined multiple times`)

  4. stephentoub commented on Nov 13, 2014

    @stephentoub
    Member

    Thanks, @akoeplinger; taking a look at your PR now.

  5. Stargurlz commented on Nov 16, 2014

    @Stargurlz

    Havjng trouble getting started. Stargurlz

  6. benjamin-bader commented on Nov 28, 2014

    @benjamin-bader
    Contributor

    +1 for a Makefile - thanks!

  7. mmitche commented on Dec 4, 2014

    @mmitche
    Member

    Thanks.
    Anyone have an comments on single build system across platforms vs. using the 'standard'? Maintaining multiple systems can be pretty expensive and makes it easier to break things if you're not careful.

  8. eatdrinksleepcode commented on Dec 4, 2014

    @eatdrinksleepcode

    The pain of maintaining multiple build systems far outweighs any advantage of using the "standard" build system for a platform in my opinion. Also, maybe this is just me, but I tend to think of a "standard" build system as being more tied to a technology stack than an OS.

  9. akoeplinger commented on Feb 26, 2015

    @akoeplinger
    MemberAuthor

    Thought I'd give a little status update on this: with a few recent xbuild fixes that I got into Mono master the corefx repo now builds on Mono, with just two workarounds for xbuild bugs that I didn't have time to investigate yet: dotnet/corefx@master...akoeplinger:xbuild

  10. stephentoub commented on Feb 26, 2015

    @stephentoub
    Member

    Thanks for working on that, @akoeplinger! That's great to hear.

  11. ellismg commented on Mar 24, 2015

    @ellismg
    Contributor

    Now that MSBuild has been open sourced, I think the direction we want to take here is to work with the MSBuild folks to get it working on Linux and OSX and then create a build.sh that mirrors build.cmd, just a lightweight wrapper around MSBuild.

    I don't think we should try to adopt a different build system, eg. make, or take a long term dependency on xbuild.

  12. akoeplinger commented on Mar 24, 2015

    @akoeplinger
    MemberAuthor

    @jasonwilliams200OK there's already work going on extending msbuild to linux/mono: dotnet/msbuild#26

    @ellismg sounds good. I'll continue to build corefx with xbuild on my fork and send PRs for xplat issues like the file casing changes I recently sent. This allows us to find problems until msbuild is ready.

  13. ellismg commented on Mar 24, 2015

    @ellismg
    Contributor

    @akoeplinger Love to see these PRs. Thanks so much and keep them coming!

  14. akoeplinger commented on May 17, 2015

    @akoeplinger
    MemberAuthor

    Boom, it's done: dotnet/corefx#1777 ✨

    Build instructions are available here

  15. akoeplinger commented on May 17, 2015

    @akoeplinger
    MemberAuthor

    @jasonwilliams200OK Even though the guide uses Ubuntu as an example right now, building should work everywhere where Mono runs. I'm sure that once the process is a little bit more streamlined and doesn't involve a CI build of Mono, there'll be guides for the distros you mentioned.

  16. transferred this issue fromdotnet/corefxon Jan 31, 2020
  17. added this to the 1.0.0-rtm milestone on Jan 31, 2020
  18. ghost locked as resolved and limited conversation to collaborators on Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions