DotNetRestoreSettings.

PublishReadyToRun Property

Summary

Gets or sets a value indicating whether to compile your application assemblies as ReadyToRun (R2R) format.

Syntax

public bool? PublishReadyToRun { get; set; }

Remarks

In .NET 6, dotnet restore followed by dotnet publish -p:PublishReadyToRun=true --no-restore will fail with the NETSDK1095 error. This is because the crossgen binary is now shipped as a separate NuGet package, and so needs to be part of the restore operation for publishing to succeed.

Supported by .NET SDK version 6.0.100 and above.

Value

Type Description
bool?