Error trying to load Microsoft.Bcl.AsyncInterfaces version 1.0.0 #112
Replies: 4 comments 9 replies
-
Unfortunately this means nothing to me.
Can you update ? |
Beta Was this translation helpful? Give feedback.
-
The changes introduced recently are including dependencies ( coverlet / open cover and report generator ) as zips and updating to version 3.0.3 of coverlet. To determine the cause of the issue I suggest. You supply your own version of the coverlet collector - we can then determine if it is the zip, then if it is the version. There are 3 visual studio options for this. Use the first or third option ( simpler option ) and use version 3.0.3. If the error still occurs then install version 1.7.2 and try again. You could also run the tool outside of FCC with the arguments as seen in the FCC output. The other option is to set the project up for running with coverlet collector.
|
Beta Was this translation helpful? Give feedback.
-
I suspect that the issue is with the installing of the tool ( and then the zip ). There is a flag when using dotnet tool install
By default, the .NET SDK tries to choose the most appropriate target framework. A temp project is created for installing the package
On the machine that I installed coverlet.console, prior to zipping, net 5.0 is installed and you can see that in the unzipped path. If you can do as requested then we should know if this is the cause and FCC can return to installing from dotnet tool on the user machine. |
Beta Was this translation helpful? Give feedback.
-
After upgrading to .Net 5.0 we had the same issue. We updated to the latest version of FCC to no success. We discovered that the run settings for the Test Explorer were not properly set. After setting those values, FCC ran flawlessly. It looks like the error in the diagnostics.log was a red herring. |
Beta Was this translation helpful? Give feedback.
-
I've just recently (the last week or so) been unable to get FCC to complete a run. It seems to error out because of a lack of Microsoft.Bcl.AsyncInterfaces version 1.0.0 we have 5.0.0 installed in our solution.
Any thoughts?
Here is a snippet from the diagnostics.log file
Resolving assembly.
TpTrace Information: 0 : 43392, 1, 2021/03/11, 12:24:52.297, 12004370685787, vstest.console.dll, AssemblyResolver.OnResolve: Microsoft.Bcl.AsyncInterfaces: Resolved from cache.
TpTrace Verbose: 0 : 43392, 1, 2021/03/11, 12:24:52.297, 12004370686267, vstest.console.dll, CurrentDomain_AssemblyResolve: Resolving assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Verbose: 0 : 43392, 1, 2021/03/11, 12:24:52.297, 12004370686810, vstest.console.dll, CurrentDomainAssemblyResolve: Failed to resolve assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Verbose: 0 : 43392, 1, 2021/03/11, 12:24:52.299, 12004370714439, vstest.console.dll, CurrentDomainAssemblyResolve: Failed to resolve assembly 'Microsoft.Bcl.AsyncInterfaces'.
TpTrace Warning: 0 : 43392, 1, 2021/03/11, 12:24:52.319, 12004370910913, vstest.console.dll, TestPluginDiscoverer: Failed to get types from assembly 'Microsoft.Diagnostics.NETCore.Client, Version=0.2.2.41902, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Skipping test extension scan for this assembly. Error: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.TestPluginDiscoverer.GetTestExtensionsFromAssembly[TPluginInfo,TExtension](Assembly assembly, Dictionary`2 pluginInfos)
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
Beta Was this translation helpful? Give feedback.
All reactions