You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet/runtime#116078 --arch was not added until .NET 10 to allow us to skip calling dotnet --info because that is slow, as it is not native code.
// However, --arch gets ignored if the host does not support it. The output is also identical with or without --arch.
// After discussion with the runtime team, the best way to determine if the host supports --arch is to call it with an invalid arch to see if it fails, because that only happens when --arch is supported.
// The --arch flag was added in the middle of .NET 10, so we can assume it is supported if the version is 10.0 or later.
// We don't want to slow down the current common case for people without .NET 10 by adding another process spawn check.
// We don't check that the version is 10.0 or later after 2026 when .NET 11 starts rolling out, as It will be slower to check all of the numbers in the output for versions >= 10.
// https://github.com/dotnet/runtime/pull/116078 --arch was not added until .NET 10 to allow us to skip calling dotnet --info because that is slow, as it is not native code.
157
+
// However, --arch gets ignored if the host does not support it. The output is also identical with or without --arch.
158
+
// After discussion with the runtime team, the best way to determine if the host supports --arch is to call it with an invalid arch to see if it fails, because that only happens when --arch is supported.
159
+
160
+
// The --arch flag was added in the middle of .NET 10, so we can assume it is supported if the version is 10.0 or later.
161
+
// We don't want to slow down the current common case for people without .NET 10 by adding another process spawn check.
162
+
// We don't check that the version is 10.0 or later after 2026 when .NET 11 starts rolling out, as It will be slower to check all of the numbers in the output for versions >= 10.
0 commit comments