Skip to content

Explore static library support (for e.g. iOS) #9

Description

@alexrp

This isn't terribly useful right now, but will become useful once the .NET SDK gains full support for Apple platforms like iOS and watchOS that only support static linking.

This will require significant work in Zig, especially for cross-compilation.

See: ziglang/zig#5145

Activity

  1. added
    state: blockedIssues that are blocked on some other issue or work.
    area: sdkIssues related to the MSBuild SDK.
    area: samplesIssues related to sample projects.
    on Jun 20, 2021
  2. self-assigned this
    on Jun 20, 2021
  3. modified the milestones: 3.0.0, 4.0 on Jun 30, 2021
  4. modified the milestones: v4.0, v5.0 on Sep 7, 2021
  5. modified the milestones: v5.0, Future on Jan 1, 2024
  6. removed their assignment
    on Jan 27, 2024
  7. alexrp commented on Apr 30, 2024

    @alexrp
    SponsorMemberAuthor

    As far as how this should work from the user perspective, I think there should just be an MSBuild property that informs the SDK which kind of library to build. NativeAOT has already introduced the NativeLib property for this; the name is a bit unfortunate, but there is probably value in standardizing on it. It accepts Shared (default) and Static. We might extend it to also accept Both.

  8. alexrp commented on Nov 28, 2024

    @alexrp
    SponsorMemberAuthor

    This is complicated somewhat by needing to invoke zig ar/zig lib to actually create the static library for C/C++ projects. For Zig code, zig build-lib -static takes care of it automatically.

  9. alexrp commented on Oct 2, 2026

    @alexrp
    SponsorMemberAuthor

    This is complicated somewhat by needing to invoke zig ar/zig lib to actually create the static library for C/C++ projects. For Zig code, zig build-lib -static takes care of it automatically.

    #313

  10. modified the milestones: Future, v8.0 on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: samplesIssues related to sample projects.area: sdkIssues related to the MSBuild SDK.state: blockedIssues that are blocked on some other issue or work.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions