You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The presence of <PackageReference Include="Microsoft.AspNetCore.App" Version="3.0.0-preview-18579-0056" /> in the test project causes the following error:
C:\Development\Temp\nunittest\PrimeService.Tests> dotnet test
Build started, please wait...
Build completed.
Test run for C:\Development\Temp\nunittest\PrimeService.Tests\bin\Debug\netcoreapp3.0\PrimeService.Tests.dll(.NETCoreApp,Version=v3.0)
Microsoft (R) Test Execution Command Line Tool Version 15.9.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
Testhost process exited with error: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer..ctor()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.get_Instance()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TestRequestHandler..ctor(TestHostConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.TestHost.DefaultEngineInvoker.Invoke(IDictionary`2 argsDictionary)
at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Run(String[] args)
at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Main(String[] args)
Test Run Aborted.
The text was updated successfully, but these errors were encountered:
You need to replace the package reference with <FrameworkReference Include="Microsoft.AspNetCore.App" />. cref dotnet/aspnetcore#3612 The 3.0 Preview 2 SDK will give you warnings about this and make it work - cref dotnet/sdk#2738
Steps to reproduce
dotnet test
in test directoryExpected behavior
Tests run
Actual behavior
The presence of
<PackageReference Include="Microsoft.AspNetCore.App" Version="3.0.0-preview-18579-0056" />
in the test project causes the following error:The text was updated successfully, but these errors were encountered: