Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Up until now, the --arch option for dotnet CLI commands such as dotnet publish implied that the app was self-contained. The behavior of the --arch option has now been changed to match that of the --runtime option, and it no longer implies that an app is self-contained.
Previous behavior
--arch implied --self-contained.
New behavior
--arch doesn't imply anything about --self-contained.
Version introduced
.NET 8 RC 2
Type of breaking change
This change is a behavioral change.
Reason for change
This change was made to unify the behavior of --arch with that of --runtime, which it's an alias for. The behavior for --runtime was also changed in .NET 8.
Recommended action
If your application needs to be self contained, set --self-contained on your CLI calls, or set MSBuild properties such as <SelfContained>true</SelfContained> or <PublishSelfContained>true</PublishSelfContained>.