Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0
See original GitHub issueSteps to reproduce
- Convert file to c#
Error message shown
Code converter 8.3.0 - Visual Studio 15.9.28307.1622
An error has occured during conversion - press Ctrl+C to copy the details: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified.
File name: ‘System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’
at ICSharpCode.CodeConverter.Shared.ProjectConversion.ConvertSingleAsync[TLanguageConversion](Document document, SingleConversionOptions conversionOptions, IProgress`1 progress, CancellationToken cancellationToken)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertDocumentUnhandledAsync>d__23`1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<>c__DisplayClass14_0`1.<<ConvertDocumentAsync>b__0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__78.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask`1.<JoinAsync>d__3.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertDocumentAsync>d__14`1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ICSharpCode.CodeConverter.VsExtension.ConvertVBToCSCommand.<ConvertDocumentAsync>d__24.MoveNext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Support for VS2017 (15.*) is likely to end this year. You’re using: 15.9.28307.1622
OK
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)

Top Related StackOverflow Question
Updated Azure Data lake (still disabled) to 2.6.2000.0 and the Converter now works.
I’ve made further tweaks to try to improve 2017 compatibility of the extension in the latest release so I’ll close this issue.
The source code for the project however is only VS2019+ VS2019 Community edition is free and installs side by side with VS2017, so there’s no reason for anyone to use an older version for this solution that I’m aware of.