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
In order to transfer exceptions cross worker node boundaries the TranslateException Translator method uses TranslateDotNet member which relies upon BinaryFormatter.
The goal of this task is to rework TranslateException so that it doesn't rely upon BinaryFormatter.
This is a high priority item as current MSBuild insertion in SDK breaks due to this: #6215 (comment)
Issue Description
Subitem of #6215
In order to transfer exceptions cross worker node boundaries the
TranslateExceptionTranslator method usesTranslateDotNetmember which relies upon BinaryFormatter.The goal of this task is to rework
TranslateExceptionso that it doesn't rely upon BinaryFormatter.This is a high priority item as current MSBuild insertion in SDK breaks due to this: #6215 (comment)
Steps to Reproduce
DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR,DOTNET_ROOT,PATHto the extracted SDK (you can follow https://github.com/dotnet/sdk/blob/main/eng/dogfood.ps1#L38-L47)dotnet --versioncommandCondition- you can use this one BinaryFormatter Deprecation #6215 (comment)$env:MSBUILDNOINPROCNODE=1and$env:MSBUILDDISABLENODEREUSE=1)Expected Behavior
Build fails, but MSBuild doesn't crash
Actual Behavior
MSBuild crashes: