Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Cambio de salida de comandos de
Se ha producido un cambio en la salida de los siguientes comandos:
dotnet workload list --machine-readabledotnet workload install --print-download-link-onlydotnet workload update --print-download-link-onlydotnet workload update --print-rollback
Anteriormente, los comandos afectados generaron lo siguiente:
- Líneas de límite inicial y final para el análisis personalizado para buscar el cuerpo JSON.
- Cualquier otro texto de registro que los comandos generaron durante la operación normal.
- El cuerpo JSON.
Ahora, estos comandos solo generan el cuerpo JSON.
Comportamiento anterior
Anteriormente, los comandos afectados dotnet workload generaron una salida similar a la siguiente para el comando dotnet workload list --machine-readable:
Failed to update the advertising manifest microsoft.net.sdk.tvos: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.sdk.android: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maui: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.sdk.macos: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.sdk.ios: Unable to load the service index for source https://REDACTED/index.json..
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Unable to load the service index for source https://REDACTED/index.json..
==workloadListJsonOutputStart==
{"installed":["macos","ios"],"updateAvailable":[{"existingManifestVersion":"12.0.101-preview.10.249","availableUpdateManifestVersion":"12.0.101-preview.10.251","description":".NET SDK Workload for building macOS applications.","workloadId":"macos"},{"existingManifestVersion":"15.0.101-preview.9.31","availableUpdateManifestVersion":"15.0.101-preview.10.251","description":".NET SDK Workload for building iOS applications.","workloadId":"ios"}]}
==workloadListJsonOutputEnd==
Nuevo comportamiento
A partir de .NET 9, los comandos afectados dotnet workload generaron una salida similar a la siguiente para el comando dotnet workload list --machine-readable:
{"installed":["macos","ios"],"updateAvailable":[{"existingManifestVersion":"12.0.101-preview.10.249","availableUpdateManifestVersion":"12.0.101-preview.10.251","description":".NET SDK Workload for building macOS applications.","workloadId":"macos"},{"existingManifestVersion":"15.0.101-preview.9.31","availableUpdateManifestVersion":"15.0.101-preview.10.251","description":".NET SDK Workload for building iOS applications.","workloadId":"ios"}]}
Versión introducida
Versión preliminar 1 de .NET 9
Tipo de cambio disruptivo
Este es un cambio de comportamiento.
Motivo del cambio
Cuando se solicita JSON, muchos productos de la CLI solo generan JSON. Queríamos seguir el procedimiento y también generar solo JSON. Con este cambio, los clientes que usan estos comandos en sus herramientas no requieren ningún análisis personalizado. Puede canalizar la salida de estos comandos directamente en un analizador JSON en lugar de la lógica de análisis intermedia.
Acción recomendada
Si el código busca el siguiente texto de límite inicial y final antes de analizar JSON, ya no es necesario buscar la salida de estos límites. En su lugar, considere la salida de estos comandos para que sea directamente el cuerpo JSON.
==workloadListJsonOutputStart==/==workloadListJsonOutputEnd====allPackageLinksJsonOutputStart==/==allPackageLinksJsonOutputEnd====workloadRollbackDefinitionJsonOutputStart==/==workloadRollbackDefinitionJsonOutputEnd==
Las APIs afectadas
No disponible