richardtallent / RT.Comb

Creating sequential GUIDs in C# for MSSQL or PostgreSql
203 stars 35 forks source link

Unit Test runner not working under OS X #6

Closed richardtallent closed 7 years ago

richardtallent commented 7 years ago

After upgrading to .NET Core 1.0.1 and migrating the project.json files to .csproj, I'm no longer able to successfully use dotnet test to run unit tests.

It says Starting test execution, please wait..., then appears to hang for a few minutes, then responds with:

Testhost process exited with error: A fatal error was encountered.
The library 'libhostpolicy.dylib' required to execute the application
was not found in '[foo]/test/RT.Comb.Tests/bin/Debug/netstandard1.5'.

where [foo] is the root solution directory.

I would appreciate if anyone could confirm the same issue on OS X or other platforms, or please send a PR if you have a fix!

If it matters, I still want the library to target .NET Standard 1.2, since I want to remain compatible with .NET 4.5.1 and apparently we can't multi-target that separately on OS X anymore.

richardtallent commented 7 years ago

Resolved -- dumb mistake on my part, the TargetFramework for the test project was set to netstandard1.6 rather than netcoreapp1.1.