Skip to content

docs: Breaking change article for NativeAOT lib prefix on Unix (.NET 11)#52862

Merged
gewarren merged 3 commits intomainfrom
copilot/breaking-change-use-lib-prefix
Apr 6, 2026
Merged

docs: Breaking change article for NativeAOT lib prefix on Unix (.NET 11)#52862
gewarren merged 3 commits intomainfrom
copilot/breaking-change-use-lib-prefix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

Documents the .NET 11 Preview 3 NativeAOT breaking change where non-executable native library outputs on Unix now get the lib prefix by default (e.g., mylib.solibmylib.so, mylib.alibmylib.a).

Changes

  • New article docs/core/compatibility/interop/11/nativeaot-lib-prefix.md — covers previous/new behavior, opt-out via UseNativeLibPrefix, and recommended actions
  • docs/core/compatibility/11.md — adds new Interop section with entry for the article
  • docs/core/compatibility/toc.yml — adds Interop section under .NET 11
  • docs/core/project-sdk/msbuild-props.md — adds UseNativeLibPrefix to the Publish-related properties section with a full description, example, and cross-link to the breaking change article

Opt-out

<PropertyGroup>
  <UseNativeLibPrefix>false</UseNativeLibPrefix>
</PropertyGroup>

Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/11.md docs/core/compatibility/11
docs/core/compatibility/interop/11/nativeaot-lib-prefix.md docs/core/compatibility/interop/11/nativeaot-lib-prefix
docs/core/compatibility/toc.yml docs/core/compatibility/toc
docs/core/project-sdk/msbuild-props.md docs/core/project-sdk/msbuild-props

Copilot AI changed the title [WIP] Update NativeAOT to use 'lib' prefix for Unix outputs docs: Breaking change article for NativeAOT lib prefix on Unix (.NET 11) Apr 3, 2026
Copilot AI requested a review from gewarren April 3, 2026 21:48
Copy link
Copy Markdown
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Please also update msbuild-props.md with the new property.

…fix to msbuild-props.md

Agent-Logs-Url: https://github.com/dotnet/docs/sessions/3ef11c32-59d2-4c5b-ab73-f7d5d36f2b3b

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot Please also update msbuild-props.md with the new property.

Done — added UseNativeLibPrefix to the Publish-related properties section in msbuild-props.md (commit 4d98af4).

Copilot AI requested a review from gewarren April 4, 2026 01:59
@gewarren gewarren marked this pull request as ready for review April 4, 2026 01:59
@gewarren gewarren requested a review from a team as a code owner April 4, 2026 01:59
Copilot AI review requested due to automatic review settings April 4, 2026 01:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds .NET 11 documentation for a NativeAOT behavior change on Unix where non-executable native library outputs now get the lib prefix by default, and documents the UseNativeLibPrefix opt-out property.

Changes:

  • Adds a new .NET 11 breaking change article describing the new default lib prefix behavior and the opt-out property.
  • Updates the .NET 11 breaking changes index and TOC to include the new Interop entry.
  • Documents UseNativeLibPrefix in the MSBuild properties reference.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
docs/core/project-sdk/msbuild-props.md Adds UseNativeLibPrefix property documentation and links to the breaking change article.
docs/core/compatibility/toc.yml Adds an Interop node for .NET 11 and links the new breaking change article.
docs/core/compatibility/interop/11/nativeaot-lib-prefix.md New breaking change article describing the Unix lib prefix default and opt-out.
docs/core/compatibility/11.md Adds an Interop section entry for the new breaking change article.

@gewarren gewarren enabled auto-merge (squash) April 4, 2026 02:07
Copy link
Copy Markdown
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Let's :shipit:

@gewarren gewarren merged commit f818bf2 into main Apr 6, 2026
16 checks passed
@gewarren gewarren deleted the copilot/breaking-change-use-lib-prefix branch April 6, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: NativeAOT: Use lib prefix by default on Unix for native library outputs

4 participants