-
Notifications
You must be signed in to change notification settings - Fork 329
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
Error running dotnet test on Mac with net461 #1284
Comments
@owenniblock Please share repro project and diagnostic logs. |
Interestingly - I get the error:
If I run the following command: (The original project which led me to report the error builds successfully but I can't share that unfortunately). |
@owenniblock I think mono requires all references to be explicitly mentioned in csproj (observed this while fixing few build issues on Linux for vstest repo). The test project is old project system based. I'd suggest moving the project to new project system and adding |
I have the same issue, did you find out what you had to reference for it to work? |
@dustinmoris - No, I'm afraid not. I think we've decided to go down the dotnet core route for the project we were on. I got this issue when investigating alternatives to dotnet core so didn't have enough time to dig in to it any deeper. |
@owenniblock This is issue with vstest #1318 (comment). |
This ought to be fixed - it should check for Mono and work as appropriate. |
I'm not seeing this as fixed. I'm getting this
|
Ping — will you be fixing this? |
+1 |
Please follow the workaround provided by @atlemann for this issue. |
Description
When I test a .Net 4.6.1 test class - the test fails to run and exits with an error.
Steps to reproduce
export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.6.1-api
dotnet test -f net461
Expected behavior
The tests load and run in the terminal.
Actual behavior
Test fails with error:
Diagnostic logs
Error in the log file:
Environment
The text was updated successfully, but these errors were encountered: