Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/core/project-sdk/msbuild-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ The following MSBuild properties are documented in this section:
- [PublishReferencesDocumentationFiles](#publishreferencesdocumentationfiles)
- [PublishReferencesSymbols](#publishreferencessymbols)
- [PublishRelease](#publishrelease)
- [PublishRuntimeIdentifier](#publishruntimeidentifier)
- [PublishSelfContained](#publishselfcontained)
- [RollForward](#rollforward)
- [RuntimeFrameworkVersion](#runtimeframeworkversion)
Expand Down Expand Up @@ -581,6 +582,15 @@ The `PublishRelease` property informs `dotnet publish` to use the `Release` conf
> - Starting in the .NET 8 SDK, `PublishRelease` defaults to `true` for projects that target .NET 8 or later. For more information, see ['dotnet publish' uses Release configuration](../compatibility/sdk/8.0/dotnet-publish-config.md).
> - This property does not affect the behavior of `dotnet build /t:Publish`, and it changes the configuration only when publishing via the .NET CLI.

### PublishRuntimeIdentifier

The `PublishRuntimeIdentifier` property lets you specify a single [runtime identifier (RID)](../rid-catalog.md) for the `dotnet publish` command. This property is similar to the [RuntimeIdentifier](#runtimeidentifier) property, except that it's specific to the `publish` verb.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of verb, we should use target as it's an MSBuild target, or just say "publishing"

Suggested change
The `PublishRuntimeIdentifier` property lets you specify a single [runtime identifier (RID)](../rid-catalog.md) for the `dotnet publish` command. This property is similar to the [RuntimeIdentifier](#runtimeidentifier) property, except that it's specific to the `publish` verb.
The `PublishRuntimeIdentifier` property lets you specify a single [runtime identifier (RID)](../rid-catalog.md) for the `dotnet publish` command. This property is similar to the [RuntimeIdentifier](#runtimeidentifier) property, except that it's specific to the `publish` target.


```xml
<PropertyGroup>
<PublishRuntimeIdentifier>linux-x64</PublishRuntimeIdentifier>
</PropertyGroup>
```
### PublishSelfContained

The `PublishSelfContained` property informs `dotnet publish` to publish an app as a [self-contained app](../deploying/index.md#self-contained-deployment). This property is useful when you can't use the `--self-contained` argument for the [dotnet publish](../tools/dotnet-publish.md) command&mdash;for example, when you're publishing at the solution level. In that case, you can add the `PublishSelfContained` MSBuild property to a project or *Directory.Build.Props* file.
Expand Down
Loading