From 68d95fd649f41de21141bff06afc710f63d081dc Mon Sep 17 00:00:00 2001 From: who-dat-sew Date: Thu, 24 Apr 2025 09:06:09 +0200 Subject: [PATCH] Remove duplicate word Remove duplicate word in native-files-in-net-packages.md --- docs/create-packages/native-files-in-net-packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/create-packages/native-files-in-net-packages.md b/docs/create-packages/native-files-in-net-packages.md index db39ba523..8a690cb55 100644 --- a/docs/create-packages/native-files-in-net-packages.md +++ b/docs/create-packages/native-files-in-net-packages.md @@ -162,7 +162,7 @@ Finally, the managed library, that uses P/Invoke to call into the native library ### SDK style projects targeting .NET Framework When the .NET SDK builds a project targeting the .NET Framework, if one of `RuntimeIdentifier` or `PlatformTarget` is set, the .NET SDK will set the other property to an appropriate value, and package `runtimes/` contents (that [follow NuGet's conventions](#understanding-nuget-package-asset-selection)) will be copied to the output directory. -If the the project does not set either `RuntimeIdentifier` or `PlatformTarget`, but any package contains RID specific contents, then the .NET SDK will set `PlatformTarget` to `x86`. +If the project does not set either `RuntimeIdentifier` or `PlatformTarget`, but any package contains RID specific contents, then the .NET SDK will set `PlatformTarget` to `x86`. Therefore, SDK style projects targeting .NET Framework will only use `AnyCPU` by default when none of the packages contain RID specific content. `dotnet build -r `, or the `publish` equivalent (for example, `dotnet publish -r win-arm64`) can be used to explicitly build or publish for a specific platform.