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
On a test project targeting net46, if dotnet vstest is performed on the test assembly using the same arguments as one would use for netcoreapp targeted assembly it throws an exception. The workaround is to provide a /Framework:Framework45 switch to it.
Steps to reproduce
Create a vanilla .Net Core unit test project targeting net46 and build.
Perform dotnet vstest on the unit test assembly.
Expected behavior
The default test should run.
Actual behavior
The following exception is thrown out:
Error: Could not find testhost.dll for source 'C:\SomeRandomPath\UnitTestProject4\UnitTestProject4\bin\Debug\net46\UnitTestProject4.dll'. Make sure test project has a nuget reference of package "microsoft.testplatform.testhost".
Environment
dotnet --version 1.0.0-rc4-004812
The text was updated successfully, but these errors were encountered:
The exception message doesn't help me identify the actual cause of the problem: This assembly cannot be loaded unless its target framework is specified.
It would be great to not mandate the specification of the Framework. The test platform could smartly figure this information out.
Description
On a test project targeting net46, if dotnet vstest is performed on the test assembly using the same arguments as one would use for netcoreapp targeted assembly it throws an exception. The workaround is to provide a /Framework:Framework45 switch to it.
Steps to reproduce
Expected behavior
The default test should run.
Actual behavior
The following exception is thrown out:
Environment
dotnet --version
1.0.0-rc4-004812
The text was updated successfully, but these errors were encountered: