I created a new console application .net46, install the latest ML and tried a simple LDA. Got the error above. None of the fix that I found on the web seems to work. It is looking for a 4.1.3.0 version of the System.Numerics.Vectors that does not exist.
Asked
Active
Viewed 2,857 times
7
-
Have you tried adding the "System.Numerics.Vectors" NuGet package? – Jon Apr 20 '20 at 14:20
2 Answers
14
There is a problem that MSBuild requires version 4.1.3.0
but downloads 4.1.4.0
. You should add
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.4.0" />
</dependentAssembly>
</assemblyBinding>
to MSBuild.exe.config
. It usually located at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin
I found this bug at Visual Studio 16.8.2 and 16.8.3 .
![](../../users/profiles/3728901.webp)
Do Nhu Vy
- 33,131
- 37
- 143
- 202
![](../../users/profiles/6925727.webp)
Daniil Zemchenkov
- 143
- 1
- 6
-
1
-
1
-
Still exist in Microsoft Visual Studio Community 2019 Version 16.9.2 (March 20th, 2021) – Do Nhu Vy Mar 20 '21 at 13:25
-
`E:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin` – Do Nhu Vy Mar 20 '21 at 15:45
0
I think this may be related to this GitHub issue: https://github.com/dotnet/runtime/issues/26370
I think either trying to install the System.Numerics.Vector package as Jon suggested, or maybe update to net472 or .NET Standard 2.0 may help.
![](../../users/profiles/11860073.webp)
Alex S
- 51
- 3