New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.IO.File in .NET Standard library fails when run in unit test #363
Comments
From @srivatsn on December 20, 2016 22:57 @dotnet/vstest |
From @codito on December 21, 2016 12:50 We're investigating this issue. As a workaround, please use |
From @gulbanana on December 21, 2016 13:47 I've verified that the workaround works on my system (until I want to use a nuget package which references 1.6.1 :-) ) |
There is mismatch between version number of Due this mismatch System.IO.FileSystem 4.0.1 getting bind in compile time. which is not found in runtime. This issue can be repro with simple console app referring netstdlib. |
@smadala packaging issue in corefx? |
Could be, moving to corefx. |
This issue was moved to dotnet/corefx#16322 |
From @gulbanana on December 16, 2016 11:28
Possibly this issue should be in a vstest repository but I can't find one.
Repro: https://github.com/gulbanana/repro-netstandard-systemio
When using System.IO in a .NET Standard 1.4 class library, unit tests referencing the library fail. The error is
Message: System.IO.FileLoadException : Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Copied from original issue: dotnet/project-system#975
The text was updated successfully, but these errors were encountered: