-
Notifications
You must be signed in to change notification settings - Fork 325
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
Running dotnet test on projects that reference Newtonsoft.Json < 9.0.0.0 throws exception #613
Comments
@livarcocc @piotrpMSFT |
@Arkasha a You may hit into #428, this workaround will help #428 (comment) |
I did that. It didn't fix the issue. |
@Arkasha: I tried to repro it but no luck. Can you please share a repro project. Can you also try this: <PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup> |
1) microsoft#613 2) microsoft#428 3) microsoft#391 4) microsoft#595 Fix: Generate config file for test project targeting .NET Framework. This config file has have binding redirect which is needed at time of running tests.
1) microsoft#391 2) microsoft#613 Fix: Remove binding redirect of Newtonsoft.json from testhost config file
…663) * Issues: 1) #391 2) #613 Fix: Remove binding redirect of Newtonsoft.json from testhost config file * Address PR comment * Addressing PR comment * Fixed "path too long exception" * fix Path too long warning * fix build issue * Binding redirect Newtonsoft.json * Adding assembly redirect for Newtonsoft.json in datacollector. We have to do this because the folder which contains datacollector has Newtonsoft.Json(9.0) and datacollect depends on 8.0.
Description
Running dotnet test on projects that reference Newtonsoft.Json < 9.0.0.0 causes test to throw exception.
Steps to reproduce
Create a library project targetting .NET 4.5:
Create unit test project referencing the library project and mstest:
Execute
dotnet test Library.Test.csproj
Expected behavior
Actual behavior
Test run fails with the following exception:
Error Message:
Environment
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.1
The text was updated successfully, but these errors were encountered: